public function init()
    {
        if ($this->initialized) {
            return;
        }

        $parameters = [];

        foreach ($this->parameterRepository->getAllParameters() as $parameter) {
            $configurationName = $parameter->getConfigurationName();

            if (!isset($parameters[$configurationName])) {
                $parameters[$configurationName] = [];
            }

            $parameters[$configurationName][$parameter->getName()] = $parameter;
        }

        $this->persistedParameters = $parameters;

        foreach ($this->configurations as $configuration) {
            $configurationName = $configuration->getName();
            $this->initConfiguration(
                $configuration,
                isset($parameters[$configurationName]) ? $parameters[$configurationName] : []
            );
        }

        $this->initialized = true;
    }
public function init()
    {
        if ($this->initialized) {
            return;
        }

        $parameters = [];

        foreach ($this->parameterRepository->getAllParameters() as $parameter) {
            $configurationName = $parameter->getConfigurationName();

            if (!isset($parameters[$configurationName])) {
                $parameters[$configurationName] = [];
            }

            $parameters[$configurationName][$parameter->getName()] = $parameter;
        }

        $this->persistedParameters = $parameters;

        foreach ($this->configurations as $configuration) {
            $configurationName = $configuration->getName();
            $this->initConfiguration(
                $configuration,
                isset($parameters[$configurationName]) ? $parameters[$configurationName] : []
            );
        }

        $this->initialized = true;
    }
public function init ( ) { if ( $ this -> initialized ) { return ; } $ parameters = [ ] ; foreach ( $ this -> parameterRepository -> getAllParameters ( ) as $ parameter ) { $ configurationName = $ parameter -> getConfigurationName ( ) ; if ( ! isset ( $ parameters [ $ configurationName ] ) ) { $ parameters [ $ configurationName ] = [ ] ; } $ parameters [ $ configurationName ] [ $ parameter -> getName ( ) ] = $ parameter ; } $ this -> persistedParameters = $ parameters ; foreach ( $ this -> configurations as $ configuration ) { $ configurationName = $ configuration -> getName ( ) ; $ this -> initConfiguration ( $ configuration , isset ( $ parameters [ $ configurationName ] ) ? $ parameters [ $ configurationName ] : [ ] ) ; } $ this -> initialized = true ; }
Initializes configurations.
Initializes configurations .