return $this->debug;
} public function getLocale(): string
{ if (!
isset($this->localeSwitcher
)) { throw new \
RuntimeException('The "app.locale" variable is not available.'
);
} return $this->localeSwitcher->
getLocale();
} /**
* Returns some or all the existing flash messages:
* * getFlashes() returns all the flash messages
* * getFlashes('notice') returns a simple array with flash messages of that type
* * getFlashes(['notice', 'error']) returns a nested array of type => messages.
*/
public function getFlashes(string|array
$types = null
): array
{ try {