DependencyInjection/ContainerInjectionManager.php
public function rebuild(Kernel $kernel)
    {
        $kernelReflectionClass = new \ReflectionClass($kernel);

        $buildContainerReflectionMethod = $kernelReflectionClass->getMethod('buildContainer');
        $buildContainerReflectionMethod->setAccessible(true);

        $dumpContainerReflectionMethod = $kernelReflectionClass->getMethod('dumpContainer');
        $dumpContainerReflectionMethod->setAccessible(true);

        $getContainerClassReflectionMethod = $kernelReflectionClass->getMethod('getContainerClass');
        $getContainerClassReflectionMethod->setAccessible(true);

        $getContainerBaseClassReflectionMethod = $kernelReflectionClass->getMethod('getContainerBaseClass');
        $getContainerBaseClassReflectionMethod->setAccessible(true);

        /** @var ContainerBuilder $newContainer */
        $newContainer = $buildContainerReflectionMethod->invoke($kernel);

        $this->inject($newContainer);

        $newContainer->compile();

        $class = $getContainerClassReflectionMethod->invoke($kernel);
        $cache = new ConfigCache($kernel->getCacheDir() . '/' . $class . '.php', $kernel->isDebug());
        $dumpContainerReflectionMethod->invoke($kernel, $cache, $newContainer, $class, $getContainerBaseClassReflectionMethod->invoke($kernel));
    }
public function rebuild(Kernel $kernel)
    {
        $kernelReflectionClass = new \ReflectionClass($kernel);

        $buildContainerReflectionMethod = $kernelReflectionClass->getMethod('buildContainer');
        $buildContainerReflectionMethod->setAccessible(true);

        $dumpContainerReflectionMethod = $kernelReflectionClass->getMethod('dumpContainer');
        $dumpContainerReflectionMethod->setAccessible(true);

        $getContainerClassReflectionMethod = $kernelReflectionClass->getMethod('getContainerClass');
        $getContainerClassReflectionMethod->setAccessible(true);

        $getContainerBaseClassReflectionMethod = $kernelReflectionClass->getMethod('getContainerBaseClass');
        $getContainerBaseClassReflectionMethod->setAccessible(true);

        /** @var ContainerBuilder $newContainer */
        $newContainer = $buildContainerReflectionMethod->invoke($kernel);

        $this->inject($newContainer);

        $newContainer->compile();

        $class = $getContainerClassReflectionMethod->invoke($kernel);
        $cache = new ConfigCache($kernel->getCacheDir() . '/' . $class . '.php', $kernel->isDebug());
        $dumpContainerReflectionMethod->invoke($kernel, $cache, $newContainer, $class, $getContainerBaseClassReflectionMethod->invoke($kernel));
    }
public function rebuild ( Kernel $ kernel ) { $ kernelReflectionClass = new \ ReflectionClass ( $ kernel ) ; $ buildContainerReflectionMethod = $ kernelReflectionClass -> getMethod ( 'buildContainer' ) ; $ buildContainerReflectionMethod -> setAccessible ( true ) ; $ dumpContainerReflectionMethod = $ kernelReflectionClass -> getMethod ( 'dumpContainer' ) ; $ dumpContainerReflectionMethod -> setAccessible ( true ) ; $ getContainerClassReflectionMethod = $ kernelReflectionClass -> getMethod ( 'getContainerClass' ) ; $ getContainerClassReflectionMethod -> setAccessible ( true ) ; $ getContainerBaseClassReflectionMethod = $ kernelReflectionClass -> getMethod ( 'getContainerBaseClass' ) ; $ getContainerBaseClassReflectionMethod -> setAccessible ( true ) ; /** @var ContainerBuilder $newContainer */ $ newContainer = $ buildContainerReflectionMethod -> invoke ( $ kernel ) ; $ this -> inject ( $ newContainer ) ; $ newContainer -> compile ( ) ; $ class = $ getContainerClassReflectionMethod -> invoke ( $ kernel ) ; $ cache = new ConfigCache ( $ kernel -> getCacheDir ( ) . '/' . $ class . '.php' , $ kernel -> isDebug ( ) ) ; $ dumpContainerReflectionMethod -> invoke ( $ kernel , $ cache , $ newContainer , $ class , $ getContainerBaseClassReflectionMethod -> invoke ( $ kernel ) ) ; }
Rebuild the container and dump it to the cache to apply change on redis stored parameters
Rebuild the container and dump it to the cache to apply change on redis stored parameters