This is a continuation of my last question.
Hi,
I'm implementing, in a Symfony2 application, a custom authentication provider in order to authenticate against the Wordnik REST API.
On application load, no matter what request path, this is the exception I get:
( ! ) Fatal error: Cannot access parent:: when current class scope has no parent in /[..]/WordRot/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php on line 43
You can see the full stacktrace here.
Second to last line in the trace reveals that it is loading the DaoAuthenticationProvider
:
18 0.0217 1922792 Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider->__construct( ) ../appDevDebugProjectContainer.php:3071
But none of my configuration refers to that provider, or anything that extends it. My custom provider directly implements the AuthenticationProviderInterface
.
So I assume that my configuration is wrong, and somewhere I need to be explicitly setting the WordnikProvider
, but I'm not sure where! Research has not provided any clues to this issue.
Any help would be much appreciated!
Files
- /app/config/config.yml
- /app/config/security.yml
- /src/WordRot/PlayBundle/Security/Authentication/Provider/WordnikProvider.php
- /src/WordRot/PlayBundle/Security/Authentication/Token/WordnikUserToken.php
- /src/WordRot/PlayBundle/Security/Firewall/WordnikListener.php
- /src/WordRot/PlayBundle/DependencyInjection/Security/Factory/WordnikFactory.php