register extension

This commit is contained in:
Cyprian Beauvois 2019-07-18 12:23:14 +02:00
parent 8336136adc
commit 04a8be5f3b
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,7 @@
namespace Bluesquare\BillingBundle; namespace Bluesquare\BillingBundle;
use Bluesquare\BillingBundle\DependencyInjection\BillingExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
@ -18,4 +19,11 @@ class BillingBundle extends Bundle
{ {
parent::build($container); parent::build($container);
} }
public function getContainerExtension()
{
if (null === $this->extension)
$this->extension = new BillingExtension();
return $this->extension;
}
} }