symfony-storage/StorageBundle/StorageBundle.php

25 lines
609 B
PHP

<?php
namespace Bluesquare\StorageBundle;
use Bluesquare\StorageBundle\DependencyInjection\StorageExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class StorageBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->registerExtension(new StorageExtension());
}
public function getContainerExtension()
{
if (null === $this->extension)
$this->extension = new StorageExtension();
return $this->extension;
}
}