From 04a8be5f3bebbe3cfed5da78b22e7381b43ca1ea Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Thu, 18 Jul 2019 12:23:14 +0200 Subject: [PATCH] register extension --- BillingBundle/BillingBundle.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BillingBundle/BillingBundle.php b/BillingBundle/BillingBundle.php index 20f1bf7..923fc2f 100644 --- a/BillingBundle/BillingBundle.php +++ b/BillingBundle/BillingBundle.php @@ -9,6 +9,7 @@ namespace Bluesquare\BillingBundle; +use Bluesquare\BillingBundle\DependencyInjection\BillingExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -18,4 +19,11 @@ class BillingBundle extends Bundle { parent::build($container); } + + public function getContainerExtension() + { + if (null === $this->extension) + $this->extension = new BillingExtension(); + return $this->extension; + } }