From d8e915d7592ef915b447d4c0c03372078d4f00ab Mon Sep 17 00:00:00 2001 From: PaulCombal Date: Fri, 1 Mar 2019 12:49:26 +0100 Subject: [PATCH] rename to notifications --- .../Controller/MainController.php | 6 +++--- .../DependencyInjection/Configuration.php | 2 +- .../DependencyInjection/NotificationsExtension.php | 8 +++---- .../Entity/BillingInvoice.php | 4 ++-- NotificationsBundle/NotificationsBundle.php | 25 ++++++++++++++++++++++ .../Repository/BillingInvoiceRepository.php | 4 ++-- NotificationsBundle/Resources/config/routes.yaml | 3 +++ NotificationsBundle/Resources/config/services.yaml | 16 ++++++++++++++ .../Service/FooService.php | 2 +- TestBundle/Resources/config/routes.yaml | 3 --- TestBundle/Resources/config/services.yaml | 16 -------------- TestBundle/TestBundle.php | 25 ---------------------- composer.json | 4 ++-- 13 files changed, 59 insertions(+), 59 deletions(-) rename {TestBundle => NotificationsBundle}/Controller/MainController.php (69%) rename {TestBundle => NotificationsBundle}/DependencyInjection/Configuration.php (89%) rename TestBundle/DependencyInjection/TestExtension.php => NotificationsBundle/DependencyInjection/NotificationsExtension.php (86%) rename {TestBundle => NotificationsBundle}/Entity/BillingInvoice.php (78%) create mode 100644 NotificationsBundle/NotificationsBundle.php rename {TestBundle => NotificationsBundle}/Repository/BillingInvoiceRepository.php (92%) create mode 100644 NotificationsBundle/Resources/config/routes.yaml create mode 100644 NotificationsBundle/Resources/config/services.yaml rename {TestBundle => NotificationsBundle}/Service/FooService.php (85%) delete mode 100644 TestBundle/Resources/config/routes.yaml delete mode 100644 TestBundle/Resources/config/services.yaml delete mode 100644 TestBundle/TestBundle.php 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/" } } }