2017 © Pedro Peláez
 

symfony-bundle i18n-routing-bundle

RUVENTS I18n Routing Bundle

image

ruvents/i18n-routing-bundle

RUVENTS I18n Routing Bundle

  • Wednesday, December 20, 2017
  • by RUVENTS
  • Repository
  • 4 Watchers
  • 0 Stars
  • 270 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 30 % Grown

The README.md

RUVENTS I18n Routing Bundle

Attention! This package is abandoned and no longer maintained. Consider using https://packagist.org/packages/ruwork/locale-prefix-bundle instead., (*1)

Description

This bundle hacks Symfony Framework Bundle's router and prefixes all routes with an optional /{_locale} section., (*2)

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:, (*3)

# app/config/routing_dev.yml
_profiler:
    resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
    prefix:   /_profiler
    options:  { i18n: false }

The Versions