On 03.12.2010, at 10:34, Lukas Kahwe Smith wrote:

> Sigh .. not sure what I was smoking yesterday, but the above obviously doesnt 
> work, since I cannot inject anything into a repository class reliably, since 
> in most cases its the EntityManager making the instance, that doesnt care 
> about what I specify in the Symfony2 DIC.


ok .. just learned that with the following i can load whatever service i want:

security.config:
    providers:
        main:
            password_encoder: &password_encoder
                sha1
            id:
                doctrine_user.repository.user

that solves the issue.

however when i inject the request service to be able to read some parameters 
(for example if the user has accepted the terms of services) then i get:
Fatal error: Class 'WillNeverBeCalled' not found

apparently at this point the request service hasn't been "hacked" into the 
container by the kernel yet.

regards,
Lukas Kahwe Smith
[email protected]



-- 
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to