load(realpath($cfg['Path']['shared_version']).'/bundles/KupShop/KupShopBundle/Resources/config/config_'.$this->getEnvironment().'.yml'); } protected function initializeContainer() { parent::initializeContainer(); if (!self::$connection) { self::$connection = sqlGetConnection(); } else { $this->getContainer()->set('doctrine.dbal.default_connection', self::$connection); } } public function shutdown() { // call reset before shutdown to be memory freed correctly if ($this->getContainer() instanceof ResetInterface) { $this->getContainer()->reset(); } parent::shutdown(); } }