public function __construct($debug = false, TranslatorInterface $translator = null) { $this->debug = (bool) $debug; $this->translator = $translator; }