protected function hasBundle($name, ContainerBuilder $container)
    {
        $bundles = $container->getParameter('kernel.bundles');

        return isset($bundles[$name]);
    }
protected function hasBundle($name, ContainerBuilder $container)
    {
        $bundles = $container->getParameter('kernel.bundles');

        return isset($bundles[$name]);
    }
protected function hasBundle ( $ name , ContainerBuilder $ container ) { $ bundles = $ container -> getParameter ( 'kernel.bundles' ) ; return isset ( $ bundles [ $ name ] ) ; }
Returns if a bundle is available.

@param string           $name      A bundle name
@param ContainerBuilder $container Symfony dependency injection container

@return bool
Returns if a bundle is available .