public function __construct($debug, ContainerAwareEventDispatcher $dispatcher) { $this->debug = $debug; $this->dispatcher = $dispatcher; $this->translator = $dispatcher->getContainer()->get("thelia.translator"); $this->hookResults = array(); }