private function createConfigWrapper(): ConfigWrapper
    {
        $factory = new LazyLoadingValueHolderFactory();
        $initializer = function (&$wrappedObject, LazyLoadingInterface $proxy, $method, array $parameters, &$initializer) {
            $initializer = null;
            $wrappedObject = new ConfigWrapper($this->aggregator->getConfig());

            return true;
        };

        return $factory->createProxy(ConfigWrapper::class, $initializer);
    }
private function createConfigWrapper(): ConfigWrapper
    {
        $factory = new LazyLoadingValueHolderFactory();
        $initializer = function (&$wrappedObject, LazyLoadingInterface $proxy, $method, array $parameters, &$initializer) {
            $initializer = null;
            $wrappedObject = new ConfigWrapper($this->aggregator->getConfig());

            return true;
        };

        return $factory->createProxy(ConfigWrapper::class, $initializer);
    }
private function createConfigWrapper ( ) : ConfigWrapper { $ factory = new LazyLoadingValueHolderFactory ( ) ; $ initializer = function ( & $ wrappedObject , LazyLoadingInterface $ proxy , $ method , array $ parameters , & $ initializer ) { $ initializer = null ; $ wrappedObject = new ConfigWrapper ( $ this -> aggregator -> getConfig ( ) ) ; return true ; } ; return $ factory -> createProxy ( ConfigWrapper :: class , $ initializer ) ; }
Create lazy loaded configuration.

@return \EzSystems\EzPlatformAdminUi\UI\Config\ConfigWrapper
Create lazy loaded configuration .