>From what I noticed there is regex support in routing patterns, I am
using a bit of regex in my routing:

route_name:
    pattern: /test/@path/{id}/
    defaults: { _controller: HelloBundle:Test:index }
    requirements: { path: '[a-zA-Z0-9_\-\/]+', id: '[0-9]+' }
    options: { compiler_class: Sensio\HelloBundle\Routing
\RouteCompiler }

I defined my own support for variables marked with @ because I needed
to be able to use "/" in pattern variable value.
You can check appdevUrlMatcher.php in cache folder. Every regexp from
"requirements" is there.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to