public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null) { parent::__construct($kernel, $server, $history, $cookieJar); $this->connection = $this->getContainer()->get('doctrine.dbal.default_connection'); }
/** * @param \Symfony\Component\HttpKernel\KernelInterface $kernel * @param array $server * @param null $history * @param null $cookieJar */ public function __construct($kernel, array $server = array(), $history = null, $cookieJar = null) { parent::__construct($kernel, $server, $history, $cookieJar); $this->router = $this->getContainer()->get('router'); }