ruvents / i18n-routing-bundle
RUVENTS I18n Routing Bundle
Installs: 281
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Type:symfony-bundle
Requires
- php: >=5.5.9
- symfony/config: ^3.0 || ^4.0
- symfony/dependency-injection: ^3.0 || ^4.0
- symfony/framework-bundle: ^3.0 || ^4.0
- symfony/http-foundation: ^3.0 || ^4.0
- symfony/http-kernel: ^3.0 || ^4.0
- symfony/routing: ^3.0 || ^4.0
- symfony/yaml: ^3.0 || ^4.0
Requires (Dev)
- matthiasnoback/symfony-dependency-injection-test: ^2.1
- symfony/config: ~3.0.0
- symfony/dependency-injection: ~3.0.0
- symfony/framework-bundle: ~3.0.0
- symfony/http-foundation: ~3.0.0
- symfony/http-kernel: ~3.0.0
- symfony/routing: ~3.0.0
- symfony/yaml: ~3.0.0
This package is not auto-updated.
Last update: 2020-08-21 20:44:20 UTC
README
Attention! This package is abandoned and no longer maintained. Consider using https://packagist.org/packages/ruwork/locale-prefix-bundle instead.
Description
This bundle hacks Symfony Framework Bundle's router and prefixes all routes with an optional /{_locale}
section.
Configuration
services: router: "@ruvents_i18n_routing.framework_router_decorator" ruvents_i18n_routing: locales: [ru, en] default_locale: ru
Disable prefixing
To prevent routes from being prefixed, set i18n
option to false. For example:
# app/config/routing_dev.yml _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler options: { i18n: false }