We are using HWIOAuhtBundle for authentication so have a such user provider interface:
class OAuthUserProvider implements
UserProviderInterface , OAuthAwareUserProviderInterface
{
...
public function loadUserByUsername($username)
{
...
}
public function loadUserByOAuthUserResponse(UserResponseInterface $response)
{
...
}
}
Is there the way to access parameters specified in config.yml in methods of OAuthUserProvider class, for instance the facebook app id?
hwi_oauth:
resource_owners:
facebook:
type: facebook
client_id: %fb_app%
or how to access the ServiceContainer? And then get parms this way: http://symfony.com/doc/current/components/dependency_injection/parameters.html