From 6bb3d3bf0b6bfa5de38d9e5a9fbf5f8e6f23a5d8 Mon Sep 17 00:00:00 2001 From: Ronen Lubin Date: Wed, 27 Mar 2024 12:02:34 +0200 Subject: [PATCH] add name space --- composer.json | 5 +++++ src/AtlasDoctrineBundle.php | 3 +++ src/LoadEntities.php | 1 - tests/BundleTest.php | 6 ++---- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 77d0c32..c2ae637 100644 --- a/composer.json +++ b/composer.json @@ -13,5 +13,10 @@ "require-dev": { "phpunit/phpunit": "^11", "squizlabs/php_codesniffer": "^3" + }, + "autoload": { + "psr-4": { + "Ariga\\": "src/" + } } } diff --git a/src/AtlasDoctrineBundle.php b/src/AtlasDoctrineBundle.php index 7fd3c76..5247ffe 100644 --- a/src/AtlasDoctrineBundle.php +++ b/src/AtlasDoctrineBundle.php @@ -1,7 +1,10 @@ setContainer($container); $application = new Application(); $bundle->registerCommands($application); @@ -53,7 +51,7 @@ public function testRegisterCommandsWithConfig(): void $registry = new Registry($container, [], ['default' => 'doctrine.orm.default_entity_manager'], 'default', 'default'); $container->set('doctrine', $registry); - $bundle = new AtlasDoctrineBundle(); + $bundle = new Ariga\AtlasDoctrineBundle(); $bundle->setContainer($container); $application = new Application(); $bundle->registerCommands($application);