Skip to content

Commit

Permalink
Remove "bundle" into service names
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 9, 2018
1 parent 9b8f036 commit bdaf224
Show file tree
Hide file tree
Showing 37 changed files with 87 additions and 87 deletions.
8 changes: 4 additions & 4 deletions Event/NotificationEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ class NotificationEvents {
*
* @var string
*/
const NOTIFICATION_DANGER = "webeweb.bootstrapbundle.event.notification." . BootstrapBundle::BOOTSTRAP_DANGER;
const NOTIFICATION_DANGER = "webeweb.bootstrap.event.notification." . BootstrapBundle::BOOTSTRAP_DANGER;

/**
* Notification "Info".
*
* @var string
*/
const NOTIFICATION_INFO = "webeweb.bootstrapbundle.event.notification." . BootstrapBundle::BOOTSTRAP_INFO;
const NOTIFICATION_INFO = "webeweb.bootstrap.event.notification." . BootstrapBundle::BOOTSTRAP_INFO;

/**
* Notification "Success".
*
* @var string
*/
const NOTIFICATION_SUCCESS = "webeweb.bootstrapbundle.event.notification." . BootstrapBundle::BOOTSTRAP_SUCCESS;
const NOTIFICATION_SUCCESS = "webeweb.bootstrap.event.notification." . BootstrapBundle::BOOTSTRAP_SUCCESS;

/**
* Notification "Warning".
*
* @var string
*/
const NOTIFICATION_WARNING = "webeweb.bootstrapbundle.event.notification." . BootstrapBundle::BOOTSTRAP_WARNING;
const NOTIFICATION_WARNING = "webeweb.bootstrap.event.notification." . BootstrapBundle::BOOTSTRAP_WARNING;

}
2 changes: 1 addition & 1 deletion EventListener/KernelEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class KernelEventListener {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.eventlistener.kernel";
const SERVICE_NAME = "webeweb.bootstrap.eventlistener.kernel";

/**
* Providers manager.
Expand Down
2 changes: 1 addition & 1 deletion EventListener/NotificationEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NotificationEventListener {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.eventlistener.notification";
const SERVICE_NAME = "webeweb.bootstrap.eventlistener.notification";

/**
* Kernel event listener.
Expand Down
2 changes: 1 addition & 1 deletion Manager/ProvidersManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ProvidersManager {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.manager.providers";
const SERVICE_NAME = "webeweb.bootstrap.manager.providers";

/**
* Application provider.
Expand Down
2 changes: 1 addition & 1 deletion Provider/ApplicationProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface ApplicationProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.application";
const SERVICE_NAME = "webeweb.bootstrap.provider.application";

/**
* Get the description.
Expand Down
2 changes: 1 addition & 1 deletion Provider/BreadcrumbsProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface BreadcrumbsProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.breadcrumbs";
const SERVICE_NAME = "webeweb.bootstrap.provider.breadcrumbs";

/**
* Get the view.
Expand Down
2 changes: 1 addition & 1 deletion Provider/DropDownHookProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DropDownHookProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.dropdownhook";
const SERVICE_NAME = "webeweb.bootstrap.provider.dropdownhook";

/**
* Get the items.
Expand Down
2 changes: 1 addition & 1 deletion Provider/DropDownNotificationsProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DropDownNotificationsProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.dropdownnotifications";
const SERVICE_NAME = "webeweb.bootstrap.provider.dropdownnotifications";

/**
* Get the notifications.
Expand Down
2 changes: 1 addition & 1 deletion Provider/DropDownTasksProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DropDownTasksProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.dropdowntasks";
const SERVICE_NAME = "webeweb.bootstrap.provider.dropdowntasks";

/**
* Get the tasks.
Expand Down
2 changes: 1 addition & 1 deletion Provider/FooterProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface FooterProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.footer";
const SERVICE_NAME = "webeweb.bootstrap.provider.footer";

/**
* Get the view.
Expand Down
2 changes: 1 addition & 1 deletion Provider/NavigationProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface NavigationProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.navigation";
const SERVICE_NAME = "webeweb.bootstrap.provider.navigation";

/**
* Get the tree.
Expand Down
2 changes: 1 addition & 1 deletion Provider/SearchProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface SearchProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.search";
const SERVICE_NAME = "webeweb.bootstrap.provider.search";

/**
* Get the view.
Expand Down
2 changes: 1 addition & 1 deletion Provider/UserInfoProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface UserInfoProviderInterface {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.provider.userinfo";
const SERVICE_NAME = "webeweb.bootstrap.provider.userinfo";

/**
* Provides a register link.
Expand Down
90 changes: 45 additions & 45 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,148 +5,148 @@ services:
alias: "monolog.logger"
public: true

webeweb.bootstrapbundle.eventlistener.kernel:
webeweb.bootstrap.eventlistener.kernel:
class: WBW\Bundle\BootstrapBundle\EventListener\KernelEventListener
arguments: ["@security.token_storage", "@webeweb.bootstrapbundle.manager.providers"]
arguments: ["@security.token_storage", "@webeweb.bootstrap.manager.providers"]
public: true
tags:
- { name: "kernel.event_listener", event: "kernel.exception", method: "onKernelException" }
- { name: "kernel.event_listener", event: "kernel.request", method: "onKernelRequest" }

webeweb.bootstrapbundle.eventlistener.notification:
webeweb.bootstrap.eventlistener.notification:
class: WBW\Bundle\BootstrapBundle\EventListener\NotificationEventListener
arguments: ["@webeweb.bootstrapbundle.eventlistener.kernel"]
arguments: ["@webeweb.bootstrap.eventlistener.kernel"]
tags:
- { name: "kernel.event_listener", event: "webeweb.bootstrapbundle.event.notification.danger", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrapbundle.event.notification.info", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrapbundle.event.notification.success", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrapbundle.event.notification.warning", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrap.event.notification.danger", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrap.event.notification.info", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrap.event.notification.success", method: "onNotify" }
- { name: "kernel.event_listener", event: "webeweb.bootstrap.event.notification.warning", method: "onNotify" }

webeweb.bootstrapbundle.manager.providers:
webeweb.bootstrap.manager.providers:
class: WBW\Bundle\BootstrapBundle\Manager\ProvidersManager
arguments: ["@twig"]
calls:
- ["setApplicationProvider", ["@?webeweb.bootstrapbundle.provider.application"]]
- ["setBreadcrumbsProvider", ["@?webeweb.bootstrapbundle.provider.breadcrumbs"]]
- ["setDropDownHookProvider", ["@?webeweb.bootstrapbundle.provider.dropdownhook"]]
- ["setDropDownNotificationsProvider", ["@?webeweb.bootstrapbundle.provider.dropdownnotifications"]]
- ["setDropDownTasksProvider", ["@?webeweb.bootstrapbundle.provider.dropdowntasks"]]
- ["setFooterProvider", ["@?webeweb.bootstrapbundle.provider.footer"]]
- ["setNavigationProvider", ["@?webeweb.bootstrapbundle.provider.navigation"]]
- ["setSearchProvider", ["@?webeweb.bootstrapbundle.provider.search"]]
- ["setUserInfoProvider", ["@?webeweb.bootstrapbundle.provider.userinfo"]]

webeweb.bootstrapbundle.twig.extension.css.button:
- ["setApplicationProvider", ["@?webeweb.bootstrap.provider.application"]]
- ["setBreadcrumbsProvider", ["@?webeweb.bootstrap.provider.breadcrumbs"]]
- ["setDropDownHookProvider", ["@?webeweb.bootstrap.provider.dropdownhook"]]
- ["setDropDownNotificationsProvider", ["@?webeweb.bootstrap.provider.dropdownnotifications"]]
- ["setDropDownTasksProvider", ["@?webeweb.bootstrap.provider.dropdowntasks"]]
- ["setFooterProvider", ["@?webeweb.bootstrap.provider.footer"]]
- ["setNavigationProvider", ["@?webeweb.bootstrap.provider.navigation"]]
- ["setSearchProvider", ["@?webeweb.bootstrap.provider.search"]]
- ["setUserInfoProvider", ["@?webeweb.bootstrap.provider.userinfo"]]

webeweb.bootstrap.twig.extension.css.button:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\ButtonTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.css.code:
webeweb.bootstrap.twig.extension.css.code:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\CodeTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.css.grid:
webeweb.bootstrap.twig.extension.css.grid:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\GridTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.css.image:
webeweb.bootstrap.twig.extension.css.image:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\ImageTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.css.typography:
webeweb.bootstrap.twig.extension.css.typography:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\TypographyTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.alert:
webeweb.bootstrap.twig.extension.component.alert:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\AlertTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.badge:
webeweb.bootstrap.twig.extension.component.badge:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\BadgeTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.breadcrumb:
webeweb.bootstrap.twig.extension.component.breadcrumb:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\BreadcrumbTwigExtension
arguments: ["@translator"]
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.buttongroup:
webeweb.bootstrap.twig.extension.component.buttongroup:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\ButtonGroupTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.dropdown:
webeweb.bootstrap.twig.extension.component.dropdown:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\DropdownTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.glyphicon:
webeweb.bootstrap.twig.extension.component.glyphicon:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\GlyphiconTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.label:
webeweb.bootstrap.twig.extension.component.label:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\LabelTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.nav:
webeweb.bootstrap.twig.extension.component.nav:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\NavTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.component.progressbar:
webeweb.bootstrap.twig.extension.component.progressbar:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Component\ProgressBarTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.plugin.fontawesome:
webeweb.bootstrap.twig.extension.plugin.fontawesome:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Plugin\FontAwesomeTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.plugin.jqueryinputmask:
webeweb.bootstrap.twig.extension.plugin.jqueryinputmask:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Plugin\JQueryInputMaskTwigExtension
arguments: ["@webeweb.bootstrapbundle.twig.extension.renderer"]
arguments: ["@webeweb.bootstrap.twig.extension.renderer"]
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.plugin.materialdesigniconicfont:
webeweb.bootstrap.twig.extension.plugin.materialdesigniconicfont:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Plugin\MaterialDesignIconicFontTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.plugin.meteocons:
webeweb.bootstrap.twig.extension.plugin.meteocons:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Plugin\MeteoconsTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.renderer:
webeweb.bootstrap.twig.extension.renderer:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\BootstrapRendererTwigExtension
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.utility.formbutton:
webeweb.bootstrap.twig.extension.utility.formbutton:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Utility\FormButtonTwigExtension
arguments: ["@translator", "@webeweb.bootstrapbundle.twig.extension.css.button"]
arguments: ["@translator", "@webeweb.bootstrap.twig.extension.css.button"]
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.utility.rolelabel:
webeweb.bootstrap.twig.extension.utility.rolelabel:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Utility\RoleLabelTwigExtension
arguments: ["@translator", "@webeweb.bootstrapbundle.twig.extension.component.label"]
arguments: ["@translator", "@webeweb.bootstrap.twig.extension.component.label"]
tags:
- { name: "twig.extension" }

webeweb.bootstrapbundle.twig.extension.utility.tablebutton:
webeweb.bootstrap.twig.extension.utility.tablebutton:
class: WBW\Bundle\BootstrapBundle\Twig\Extension\Utility\TableButtonTwigExtension
arguments: ["@translator", "@webeweb.bootstrapbundle.twig.extension.css.button"]
arguments: ["@translator", "@webeweb.bootstrap.twig.extension.css.button"]
tags:
- { name: "twig.extension" }
8 changes: 4 additions & 4 deletions Tests/Event/NotificationEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ final class NotificationEventsTest extends AbstractBootstrapFrameworkTestCase {
*/
public function testConstruct() {

$this->assertEquals("webeweb.bootstrapbundle.event.notification.danger", NotificationEvents::NOTIFICATION_DANGER);
$this->assertEquals("webeweb.bootstrapbundle.event.notification.info", NotificationEvents::NOTIFICATION_INFO);
$this->assertEquals("webeweb.bootstrapbundle.event.notification.success", NotificationEvents::NOTIFICATION_SUCCESS);
$this->assertEquals("webeweb.bootstrapbundle.event.notification.warning", NotificationEvents::NOTIFICATION_WARNING);
$this->assertEquals("webeweb.bootstrap.event.notification.danger", NotificationEvents::NOTIFICATION_DANGER);
$this->assertEquals("webeweb.bootstrap.event.notification.info", NotificationEvents::NOTIFICATION_INFO);
$this->assertEquals("webeweb.bootstrap.event.notification.success", NotificationEvents::NOTIFICATION_SUCCESS);
$this->assertEquals("webeweb.bootstrap.event.notification.warning", NotificationEvents::NOTIFICATION_WARNING);
}

}
2 changes: 1 addition & 1 deletion Twig/Extension/BootstrapRendererTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class BootstrapRendererTwigExtension extends AbstractBootstrapTwigExtension {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.renderer";
const SERVICE_NAME = "webeweb.bootstrap.twig.extension.renderer";

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/CSS/ButtonTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ButtonTwigExtension extends AbstractButtonTwigExtension {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.css.button";
const SERVICE_NAME = "webeweb.bootstrap.twig.extension.css.button";

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/CSS/CodeTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CodeTwigExtension extends AbstractCodeTwigExtension {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.css.code";
const SERVICE_NAME = "webeweb.bootstrap.twig.extension.css.code";

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/CSS/GridTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GridTwigExtension extends AbstractGridTwigExtension {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.css.grid";
const SERVICE_NAME = "webeweb.bootstrap.twig.extension.css.grid";

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/CSS/ImageTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ImageTwigExtension extends AbstractImageTwigExtension {
*
* @var string
*/
const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.css.image";
const SERVICE_NAME = "webeweb.bootstrap.twig.extension.css.image";

/**
* Constructor.
Expand Down
Loading

0 comments on commit bdaf224

Please sign in to comment.