public function create()
    {
        if ($this->reflectionService !== null) {
            return $this->reflectionService;
        }

        $cacheManager = $this->bootstrap->getEarlyInstance(CacheManager::class);
        $configurationManager = $this->bootstrap->getEarlyInstance(ConfigurationManager::class);
        $settings = $configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, 'Neos.Flow');

        $reflectionService = new ReflectionService();
        $reflectionService->injectLogger($this->bootstrap->getEarlyInstance(PsrLoggerFactoryInterface::class)->get('systemLogger'));
        $reflectionService->injectSettings($settings);
        $reflectionService->injectPackageManager($this->bootstrap->getEarlyInstance(PackageManager::class));
        $reflectionService->setStatusCache($cacheManager->getCache('Flow_Reflection_Status'));
        $reflectionService->setReflectionDataCompiletimeCache($cacheManager->getCache('Flow_Reflection_CompiletimeData'));
        $reflectionService->setReflectionDataRuntimeCache($cacheManager->getCache('Flow_Reflection_RuntimeData'));
        $reflectionService->setClassSchemataRuntimeCache($cacheManager->getCache('Flow_Reflection_RuntimeClassSchemata'));
        $reflectionService->injectEnvironment($this->bootstrap->getEarlyInstance(Environment::class));

        $this->reflectionService = $reflectionService;
        return $reflectionService;
    }
public function create()
    {
        if ($this->reflectionService !== null) {
            return $this->reflectionService;
        }

        $cacheManager = $this->bootstrap->getEarlyInstance(CacheManager::class);
        $configurationManager = $this->bootstrap->getEarlyInstance(ConfigurationManager::class);
        $settings = $configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, 'Neos.Flow');

        $reflectionService = new ReflectionService();
        $reflectionService->injectLogger($this->bootstrap->getEarlyInstance(PsrLoggerFactoryInterface::class)->get('systemLogger'));
        $reflectionService->injectSettings($settings);
        $reflectionService->injectPackageManager($this->bootstrap->getEarlyInstance(PackageManager::class));
        $reflectionService->setStatusCache($cacheManager->getCache('Flow_Reflection_Status'));
        $reflectionService->setReflectionDataCompiletimeCache($cacheManager->getCache('Flow_Reflection_CompiletimeData'));
        $reflectionService->setReflectionDataRuntimeCache($cacheManager->getCache('Flow_Reflection_RuntimeData'));
        $reflectionService->setClassSchemataRuntimeCache($cacheManager->getCache('Flow_Reflection_RuntimeClassSchemata'));
        $reflectionService->injectEnvironment($this->bootstrap->getEarlyInstance(Environment::class));

        $this->reflectionService = $reflectionService;
        return $reflectionService;
    }
public function create ( ) { if ( $ this -> reflectionService !== null ) { return $ this -> reflectionService ; } $ cacheManager = $ this -> bootstrap -> getEarlyInstance ( CacheManager :: class ) ; $ configurationManager = $ this -> bootstrap -> getEarlyInstance ( ConfigurationManager :: class ) ; $ settings = $ configurationManager -> getConfiguration ( ConfigurationManager :: CONFIGURATION_TYPE_SETTINGS , 'Neos.Flow' ) ; $ reflectionService = new ReflectionService ( ) ; $ reflectionService -> injectLogger ( $ this -> bootstrap -> getEarlyInstance ( PsrLoggerFactoryInterface :: class ) -> get ( 'systemLogger' ) ) ; $ reflectionService -> injectSettings ( $ settings ) ; $ reflectionService -> injectPackageManager ( $ this -> bootstrap -> getEarlyInstance ( PackageManager :: class ) ) ; $ reflectionService -> setStatusCache ( $ cacheManager -> getCache ( 'Flow_Reflection_Status' ) ) ; $ reflectionService -> setReflectionDataCompiletimeCache ( $ cacheManager -> getCache ( 'Flow_Reflection_CompiletimeData' ) ) ; $ reflectionService -> setReflectionDataRuntimeCache ( $ cacheManager -> getCache ( 'Flow_Reflection_RuntimeData' ) ) ; $ reflectionService -> setClassSchemataRuntimeCache ( $ cacheManager -> getCache ( 'Flow_Reflection_RuntimeClassSchemata' ) ) ; $ reflectionService -> injectEnvironment ( $ this -> bootstrap -> getEarlyInstance ( Environment :: class ) ) ; $ this -> reflectionService = $ reflectionService ; return $ reflectionService ; }
Get reflection service instance
Get reflection service instance