Developed with love by KnpLabs Hire us for your project!
20

RoutingExtraBundle

by symfony-cmf

Obsolete, kept here for symfony 2.1 support. Go to RoutingBundle for symfony 2.2 and newer

OBSOLETE

This bundle has been renamed to SymfonyCmfRoutingBundle. Use this old
version for Symfony 2.1 projects.

Symfony CMF Routing Extra Bundle Build Status

This bundle enables the CMF Routing component
as Symfony2 bundle. It provides route documents for Doctrine PHPCR-ODM and a
controller for redirection routes.

The chain router is meant to replace the default Symfonys Router. All it does
is collect a prioritized list of routers and try to match requests and generate
urls with all of them. One of the routers in that chain can of course be the
default router so you can still use the standard way for some of your routes.

Additionally, this bundle delivers useful router implementations. Currently,
there is the DynamicRouter that routes based on a implemented provider that
provide Symfony2 Route objects. The provider can be implemented using a
database, for example with Doctrine PHPCR-ODM or Doctrine ORM. The bundle
provides a default implementation for Doctrine PHPCR-ODM.

The DynamicRouter service is only made available when explicitly enabled in the
application configuration.

See the official documentation

Installation

Add a requirement for symfony-cmf/routing-extra-bundle 1.0.0 to your
composer.json and instantiate the bundle in your AppKernel.php

new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle()

If you just want to use the chain router, this is enough.
For the DynamicRouter you need something to build a route provider.
This bundle provides classes for Doctrine PHPCR ODM.

Authors

  • Filippo De Santis (p16)
  • Henrik Bjornskov (henrikbjorn)
  • Claudio Beatrice (omissis)
  • Lukas Kahwe Smith (lsmith77)
  • David Buchmann (dbu)
  • Uwe J├Ąger (uwej711)
  • And others
RoutingExtraBundle

The MIT License

Copyright (c) 2011-2012 Symfony2 CMF

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
symfony_cmf_routing_extra:
chain:
routers_by_id:

# Prototype
id: []
replace_symfony_router: true
dynamic:
enabled: ~
generic_controller: symfony_cmf_content.controller:indexAction
controllers_by_type:

# Prototype
type: []
controllers_by_class:

# Prototype
class: []
templates_by_class:

# Prototype
alias: []
manager_registry: doctrine_phpcr
manager_name: default
uri_filter_regexp:
route_provider_service_id: symfony_cmf_routing_extra.default_route_provider
route_filters_by_id:

# Prototype
id: []
content_repository_service_id: symfony_cmf_routing_extra.default_content_repository
routing_repositoryroot: /cms/routes
locales: []
use_sonata_admin: auto
content_basepath: /cms/content
route_basepath: /cms
  • Merge pull request #6 from peterkokot/patch-license
    By lsmith77, 3 years ago
  • license year updated
    By peterkokot, 3 years ago
  • license file moved to meta folder
    By peterkokot, 3 years ago
  • Merge pull request #1 from jrobeson/patch-1
    By dbu, 4 years ago
  • add link to new bundle
    By jrobeson, 4 years ago
  • add obsolete note
    By dbu, 4 years ago
  • Merge pull request #81 from WouterJ/xml_support
    By lsmith77, 4 years ago
  • Added XML schema
    By WouterJ, 4 years ago
  • Fixed array nodes
    By WouterJ, 4 years ago
  • Added namespace
    By WouterJ, 4 years ago
  • Merge pull request #80 from dantleech/route_type_type
    By dbu, 4 years ago
  • Fixed coding standards & made translatable
    By dantleech, 4 years ago
  • Added RouteTypeType form type.
    By dantleech, 4 years ago
  • adjust travis build to phpcr-odm init refactoring
    By dbu, 4 years ago
  • use the new phpcr-bundle initializer
    By dbu, 4 years ago
  • Merge pull request #79 from trsteel88/patch-1
    By lsmith77, 4 years ago
  • Remove duplicate service definition
    By trsteel88, 4 years ago
  • current version will not be compatible with routing component 1.1
    By dbu, 4 years ago
  • Merge pull request #77 from EmmanuelVella/minimal-admin
    By dbu, 4 years ago
  • Remove minimal admin
    By emmanuelvella, 4 years ago
  • Merge pull request #75 from symfony-cmf/handle-locale-in-route
    By dbu, 4 years ago
  • logger is optional
    By lsmith77, 4 years ago
  • improve locale handler
    By dbu, 4 years ago
  • add missing translation for sonata
    By dbu, 4 years ago
  • add missing translation for sonata
    By dbu, 4 years ago
  • this change alters the result of getPath, use getId in admin
    By dbu, 4 years ago
  • handle locale in route if path starts with a valid locale. fix #61
    By dbu, 4 years ago
  • cs cleanup
    By dbu, 4 years ago
  • Merge pull request #73 from symfony-cmf/adjust-routing
    By dbu, 4 years ago
  • use UoW::getDocumentId
    By dbu, 4 years ago