Symfony2: weird bug when defining a Service…


This is weird as hell… i was defining a service this way:

services:   
    emailer:
        class: "myBundle\services\email\Emailer"

And i was getting:

InvalidArgumentException: “myBundle\\services\\mail\\Emailer'” is not a valid class name for the “emailer” service.

Then i found out after many testing that it was because of the backslash in front of the letter “e”. Wtf?? YOu can try this with any service, if you have a namespace that starts with the letter “e” you will get this error…

Weird…

Advertisements