phpmentors / route-templating-bundle
A Symfony bundle for route templating
Installs: 1 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.5.9
- symfony/config: ~2.8|~3.0|~4.0
- symfony/dependency-injection: ~2.8|~3.0|~4.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0
- symfony/http-kernel: ~2.8|~3.0|~4.0
- symfony/routing: ~2.8|~3.0|~4.0
Requires (Dev)
- ext-dom: *
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-29 05:32:24 UTC
README
A Symfony bundle for route templating
Features
- Route templating
- Copy all routes defined in the imported resource with the specified prefix
Installation
RouteTemplatingBundle can be installed using Composer.
First, add the dependency to phpmentors/route-templating-bundle
into your composer.json
file as the following:
Stable version:
composer require phpmentors/route-templating-bundle "1.1.*"
Development version:
composer require phpmentors/route-templating-bundle "~1.2@dev"
Second, add PHPMentorsRouteTemplatingBundle
into your bundles to register in AppKernel::registerBundles()
as the following:
... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new PHPMentors\RouteTemplatingBundle\PHPMentorsRouteTemplatingBundle(), ); ...
Configuration
app/config/routing.yml:
# ... photos: resource: "@PhotoBundle/Resources/config/routing.yml" prefix: /photos admin_photos: resource: "@PhotoBundle/Resources/config/routing.yml" # Same resource as `photos` prefix: /admin/photos copy_as: admin_
Support
If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on Issues.
Copyright
Copyright (c) 2016-2018 KUBO Atsuhiro, All rights reserved.