symfony/symfony — pull request #11770 by vadim2404 (2014-08-26 11:23:31+00:00)
Title: [Routing] NamePrefix option for Route annotation

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License |
| Doc PR |

Added ability to set name prefix to routes through annotations. Example:

```php
/**
* @Route("/", namePrefix="sf2_")
*/
class SomeController
{
/**
* @Route("/", name="test")
* Name will be sf2_test
*/
public function someAction()
{
}
}
```

This option must be used only in annotations for class!