2017 © Pedro Peláez
 

symfony-bundle routing-bundle

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

image

modera/routing-bundle

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  • Sunday, October 15, 2017
  • by moderadev
  • Repository
  • 3 Watchers
  • 0 Stars
  • 4,171 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

ModeraRoutingBundle

This bundle makes it possible for bundles to dynamically include routing files so you don't need to manually register them in root app/config/routing.yml file., (*1)

Installation

Step 1: Download the Bundle

``` bash composer require modera/routing-bundle:4.x-dev, (*2)


This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation. ### Step 2: Enable the Bundle This bundle should be automatically enabled by [Flex](https://symfony.com/doc/current/setup/flex.html). In case you don't use Flex, you'll need to manually enable the bundle by adding the following line in the `config/bundles.php` file of your project: ``` php <?php // config/bundles.php return [ // ... Sli\ExpanderBundle\SliExpanderBundle::class => ['all' => true], // if you still don't have it Modera\RoutingBundle\ModeraRoutingBundle::class => ['all' => true], ];

Step 3: Add routing

``` yaml // config/routes.yaml, (*3)

_modera_routing: resource: "@ModeraRoutingBundle/Resources/config/routing.yml", (*4)


## Documentation Internally `ModeraRoutingBundle` relies on `SliExpanderBundle` to leverage a consistent approach to creating extension points. Shortly speaking, in order for a bundle to contribute routing resources it has to do two things: 1. Create a contributor class which implements \Sli\ExpanderBundle\Ext\ContributorInterface 2. Register it in a service container with tag `modera_routing.routing_resources_provider`. This is how your contributor class may look like: ``` php <?php namespace Modera\ExampleBundle\Contributions; use Sli\ExpanderBundle\Ext\ContributorInterface; class RoutingResourcesProvider implements ContributorInterface { public function getItems() { return array( '@ModeraExampleBundle/Resources/config/routing.yml' ); } }

And here we have its service container definition:, (*5)

``` xml , (*6)

    <tag name="modera_routing.routing_resources_provider" />
</service>

, (*7)


Since version v1.1 a simplified way of contributing new routing resources has been added (which doesn't require adding intermediate files). Instead of having getItems() method return a path to a routing file you can now return normalized file's content: ``` php <?php class RoutingResourcesProvider implements ContributorInterface { public function getItems() { return array( array( 'resource' => '@ModeraExampleBundle/Controller/DefaultController.php', 'type' => 'annotation', ), ); } }

Licensing

This bundle is under the MIT license. See the complete license in the bundle: Resources/meta/LICENSE, (*8)

The Versions

15/10 2017

dev-sf3

dev-sf3

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-master

9999999-dev

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-963

dev-MPFE-963

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-975

dev-MPFE-975

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-977

dev-MPFE-977

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

v2.54.0

2.54.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1005

dev-MPFE-1005

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1007

dev-MPFE-1007

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1014

dev-MPFE-1014

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1017

dev-MPFE-1017

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

v2.55.0

2.55.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1014-2

dev-MPFE-1014-2

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-MPFE-1029

dev-MPFE-1029

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-direct-bundle-csrf

dev-direct-bundle-csrf

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

v2.56.0

2.56.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2017

dev-crub_pagination_fetch_fix

dev-crub_pagination_fetch_fix

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

2.x-dev

2.9999999.9999999.9999999-dev

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.0

2.52.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.1

2.52.1.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.52.2

2.52.2.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2016

v2.53.0

2.53.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.0.50

2.0.50.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.51.0

2.51.0.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v2.51.1

2.51.1.0

This bundle makes it possible for bundles to dynamically include routing files from within your bundles.

  Sources   Download

MIT

The Requires

 

The Development Requires