From f5b6df813f0d7303633b564ca8bf794fdae616f6 Mon Sep 17 00:00:00 2001 From: Francois CONTE Date: Fri, 27 Dec 2019 14:13:42 +0100 Subject: [PATCH] Load service --- .../OdandbSimpleCorsExtension.php | 20 +++++++++++++++++++ OdandbSimpleCorsBundle.php | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 DependencyInjection/OdandbSimpleCorsExtension.php diff --git a/DependencyInjection/OdandbSimpleCorsExtension.php b/DependencyInjection/OdandbSimpleCorsExtension.php new file mode 100644 index 0000000..e0b20b4 --- /dev/null +++ b/DependencyInjection/OdandbSimpleCorsExtension.php @@ -0,0 +1,20 @@ +load('services.yml'); + } +} \ No newline at end of file diff --git a/OdandbSimpleCorsBundle.php b/OdandbSimpleCorsBundle.php index aa4a8df..f10f852 100644 --- a/OdandbSimpleCorsBundle.php +++ b/OdandbSimpleCorsBundle.php @@ -2,6 +2,7 @@ namespace Odandb\SimpleCorsBundle; +use Odandb\SimpleCorsBundle\DependencyInjection\OdandbSimpleCorsExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -11,4 +12,9 @@ public function build(ContainerBuilder $container): void { parent::build($container); } + + public function getContainerExtension() + { + return new OdandbSimpleCorsExtension(); + } } \ No newline at end of file