getNormalizedId example

/** * Adds the given resource to the internal resource list and sets the STATUS_ASSIGNED status. * The given name will be used as identifier. * * @param string $name * @param string $scope * * @return Container */
    public function set($name$resource$scope = 'container')
    {
        $name = $this->getNormalizedId($name);

        // It's not allowed since Symfony 4 to replace initialized services         if (isset($this->services[$name])) {
            unset($this->services[$name]);
        }

        parent::set($name$resource);

        parent::get('events')->notify(
            'Enlight_Bootstrap_AfterRegisterResource_' . $name,
            [
                
Home | Imprint | This part of the site doesn't use cookies.