symfony/symfony — Issue #2973: Hyphen in service name corrupt the cache
Author: rcambien
Created: 2011-12-27 09:17:52+00:00
State: open

When using hyphen in a service name, the generated cache throw a PHP Parse error.

Here is my configuration file :

```yml
services:
site.my-project.landing:
scope: request
class: Riverline\OptinBrand\FrontendBundle\Workflow\Page
arguments: [ landing ]
```

And the generated code

```php
protected function getSite_My-project_LandingService()
{
}
```