Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a pattern and a path?

Tags:

symfony

I'm learning Symfony2 and I was wondering what the difference is between a pattern and a path in the demo that contains a "pattern"? I.e.:

acme_hello_namespace_homepage:
    pattern:  /hellons/{name}
    defaults: { _controller: AcmeHelloNamespaceBundle:Default:index }

hello:
    path:     /hellons/{name}
    defaults: { _controller: AcmeHelloNamespaceBundle:Hello:index }
like image 229
Shaba7elail Avatar asked Sep 25 '13 04:09

Shaba7elail


1 Answers

That's the same thing, but "pattern" is now deprecated in favor of "path" as you can see here : https://github.com/symfony/symfony/pull/6738/files#diff-0

like image 186
Peekmo Avatar answered Nov 02 '22 09:11

Peekmo