use Symfony\Component\DependencyInjection\Container;
6
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
class AlpixelCMSBundle extends Bundle
10
{
11
/**
12
* Returns the bundle's container extension.
13
*
14
* @return ExtensionInterface|null The container extension
15
*
16
* @throws \LogicException
17
*/
18
public function getContainerExtension()
19
{
20
if (null === $this->extension) {
21
$extension = $this->createContainerExtension();
22
23
if (null !== $extension) {
24
if (!$extension instanceof ExtensionInterface) {
25
throw new \LogicException(sprintf('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface.', get_class($extension)));
'Users will expect the alias of the default extension of a bundle to be the underscored version of the bundle name ("%s"). You can override "Bundle::getContainerExtension()" if you want to use "%s" or another alias.',