injectDependencies(); if (method_exists($this, 'initialize')) { $this->initialize(); } } /** * @param Config $config * @param Session $session * @param EventDispatcher $eventDispatcher */ public function inject(Config $config, Session $session, EventDispatcher $eventDispatcher) { $this->config = $config; $this->session = $session; $this->eventDispatcher = $eventDispatcher; } }