function addScope(ScopeInterface $scope);
/** * Adds the Contao scopes to the container. */ private function addContaoScopesIfNotSet() { if (!$this->container->hasScope(ContaoCoreBundle::SCOPE_BACKEND)) { $this->container->addScope(new Scope(ContaoCoreBundle::SCOPE_BACKEND, 'request')); } if (!$this->container->hasScope(ContaoCoreBundle::SCOPE_FRONTEND)) { $this->container->addScope(new Scope(ContaoCoreBundle::SCOPE_FRONTEND, 'request')); } }