[symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread ddanninger
Hi,

iam wondering is it possible to use recursive routing like:


/service/folder1
/service/folder1/folder2/folder3
/service/folder1/folder2/../folder10

Just found information for symfony 1.4 so as the routing is different
in 2.0 i would be pleased to get some help =)

best regards
dominik danninger

-- 
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 users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier

On 6/20/11 5:15 PM, ddanninger wrote:

Hi,

iam wondering is it possible to use recursive routing like:


/service/folder1
/service/folder1/folder2/folder3
/service/folder1/folder2/../folder10

Just found information for symfony 1.4 so as the routing is different
in 2.0 i would be pleased to get some help =)


pattern: /service/{folders}
requirements:
folders: .*

$folders = implode('/', $request-getAttribute('folders');

Fabien



best regards
dominik danninger



--
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 users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier

On 6/20/11 5:15 PM, ddanninger wrote:

Hi,

iam wondering is it possible to use recursive routing like:


/service/folder1
/service/folder1/folder2/folder3
/service/folder1/folder2/../folder10

Just found information for symfony 1.4 so as the routing is different
in 2.0 i would be pleased to get some help =)


pattern: /service/{folders}
requirements:
folders: .*

$folders = implode('/', $request-getAttribute('folders');

Fabien



best regards
dominik danninger



--
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 users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en