2019-02-20 11:24:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Bluesquare\StorageBundle;
|
|
|
|
|
2019-02-20 11:29:03 +01:00
|
|
|
use Bluesquare\StorageBundle\DependencyInjection\StorageExtension;
|
2019-02-20 11:24:22 +01:00
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
|
|
|
|
class StorageBundle extends Bundle
|
|
|
|
{
|
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
{
|
|
|
|
parent::build($container);
|
2019-02-21 15:07:24 +01:00
|
|
|
|
|
|
|
$container->registerExtension(new StorageExtension());
|
2019-02-20 11:24:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getContainerExtension()
|
|
|
|
{
|
|
|
|
if (null === $this->extension)
|
|
|
|
$this->extension = new StorageExtension();
|
|
|
|
return $this->extension;
|
|
|
|
}
|
|
|
|
}
|