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