diff --git a/TestBundle/Controller/MainController.php b/NotificationsBundle/Controller/MainController.php similarity index 69% rename from TestBundle/Controller/MainController.php rename to NotificationsBundle/Controller/MainController.php index 5ce0a0f..8f85e49 100644 --- a/TestBundle/Controller/MainController.php +++ b/NotificationsBundle/Controller/MainController.php @@ -1,8 +1,8 @@ getMethod()); // ON PEUT PAS INJECTER UN SERVICE DU BUNDLE EN QUESTION DANS LES ARGS DONC ON LE récupère ainsi : - $this->get('bluesquare.test_bundle.foo')->foo(); + $this->get('bluesquare.notifications_bundle.foo')->foo(); die('hello'); } } \ No newline at end of file diff --git a/TestBundle/DependencyInjection/Configuration.php b/NotificationsBundle/DependencyInjection/Configuration.php similarity index 89% rename from TestBundle/DependencyInjection/Configuration.php rename to NotificationsBundle/DependencyInjection/Configuration.php index 0b53f09..dce1348 100644 --- a/TestBundle/DependencyInjection/Configuration.php +++ b/NotificationsBundle/DependencyInjection/Configuration.php @@ -1,6 +1,6 @@ load('services.yaml'); $config = $this->processConfiguration(new Configuration(), $configs); - // $definition = $container->getDefinition('bluesquare.test_bundle.foo'); + // $definition = $container->getDefinition('bluesquare.notifications_bundle.foo'); return $config; // $this->configurePersistence($loader, $container, $config['provider']); @@ -36,7 +36,7 @@ final class TestExtension extends Extension implements PrependExtensionInterface */ public function getAlias() { - return 'bluesquare.test_bundle'; + return 'bluesquare.notifications_bundle'; } /** diff --git a/TestBundle/Entity/BillingInvoice.php b/NotificationsBundle/Entity/BillingInvoice.php similarity index 78% rename from TestBundle/Entity/BillingInvoice.php rename to NotificationsBundle/Entity/BillingInvoice.php index f62b256..9826b48 100644 --- a/TestBundle/Entity/BillingInvoice.php +++ b/NotificationsBundle/Entity/BillingInvoice.php @@ -1,11 +1,11 @@ extension) + $this->extension = new NotificationsExtension(); + + return $this->extension; + } +} \ No newline at end of file diff --git a/TestBundle/Repository/BillingInvoiceRepository.php b/NotificationsBundle/Repository/BillingInvoiceRepository.php similarity index 92% rename from TestBundle/Repository/BillingInvoiceRepository.php rename to NotificationsBundle/Repository/BillingInvoiceRepository.php index 5b03cf8..6fc4877 100644 --- a/TestBundle/Repository/BillingInvoiceRepository.php +++ b/NotificationsBundle/Repository/BillingInvoiceRepository.php @@ -1,8 +1,8 @@ extension) - $this->extension = new TestExtension(); - - return $this->extension; - } -} \ No newline at end of file diff --git a/composer.json b/composer.json index af02758..25b4d4a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "bluesquare-packages/symfony-notifications", - "description": "Test package created by Bluesquare Computing", + "description": "Notifications package created by Bluesquare Computing", "keywords": ["template", "composer", "package"], "license": "proprietary", "authors": [ @@ -15,7 +15,7 @@ }, "autoload": { "psr-4": { - "Bluesquare\\TestBundle\\": "TestBundle/" + "Bluesquare\\NotificationsBundle\\": "NotificationsBundle/" } } }