Symfony\Component\HttpKernel\Bundle\Bundle::createContainerExtension PHP Method

createContainerExtension() protected method

Creates the bundle's container extension.
protected createContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null
return Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null
    protected function createContainerExtension()
    {
        if (class_exists($class = $this->getContainerExtensionClass())) {
            return new $class();
        }
    }