protected function buildLoadableBundles(ContainerBuilder $container)
    {
        $bundles = $container->getParameter('kernel.bundles');
        foreach ($bundles as $bundle) {
            $reflectionClass = new \ReflectionClass($bundle);
            if ($reflectionClass->implementsInterface(LoadableBundle::class)) {
                (new $bundle())->load($container);
            }
        }
    }
protected function buildLoadableBundles(ContainerBuilder $container)
    {
        $bundles = $container->getParameter('kernel.bundles');
        foreach ($bundles as $bundle) {
            $reflectionClass = new \ReflectionClass($bundle);
            if ($reflectionClass->implementsInterface(LoadableBundle::class)) {
                (new $bundle())->load($container);
            }
        }
    }
protected function buildLoadableBundles ( ContainerBuilder $ container ) { $ bundles = $ container -> getParameter ( 'kernel.bundles' ) ; foreach ( $ bundles as $ bundle ) { $ reflectionClass = new \ ReflectionClass ( $ bundle ) ; if ( $ reflectionClass -> implementsInterface ( LoadableBundle :: class ) ) { ( new $ bundle ( ) ) -> load ( $ container ) ; } } }
Executes the load method of LoadableBundle instances.

@param ContainerBuilder $container The container builder
Executes the load method of LoadableBundle instances .