Skip to content

Instantly share code, notes, and snippets.

@freen
Created February 21, 2013 17:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freen/5006382 to your computer and use it in GitHub Desktop.
Symfony2 Exception - Attempting to implement a custom Authentication Provider. For some reason SF2 is loading the DaoAuthenticationProvider.
( ! ) 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
Call Stack
# Time Memory Function Location
1 0.0001 228264 {main}( ) ../app_dev.php:0
2 0.0072 1213440 Symfony\Component\HttpKernel\Kernel->handle( ) ../app_dev.php:25
3 0.0187 1698352 Symfony\Bundle\FrameworkBundle\HttpKernel->handle( ) ../bootstrap.php.cache:617
4 0.0187 1700104 Symfony\Component\HttpKernel\HttpKernel->handle( ) ../bootstrap.php.cache:1566
5 0.0187 1700168 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ../bootstrap.php.cache:1390
6 0.0187 1701016 Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher->dispatch( ) ../bootstrap.php.cache:1410
7 0.0189 1713000 Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch( ) ../ContainerAwareTraceableEventDispatcher.php:78
8 0.0189 1713048 Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher->lazyLoad( ) ../classes.php:4972
9 0.0190 1713968 Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->lazyLoad( ) ../ContainerAwareTraceableEventDispatcher.php:174
10 0.0194 1728720 Symfony\Component\DependencyInjection\Container->get( ) ../classes.php:4988
11 0.0194 1729112 appDevDebugProjectContainer->getProfilerListenerService( ) ../bootstrap.php.cache:211
12 0.0194 1729392 Symfony\Component\DependencyInjection\Container->get( ) ../appDevDebugProjectContainer.php:1549
13 0.0194 1729760 appDevDebugProjectContainer->getProfilerService( ) ../bootstrap.php.cache:211
14 0.0210 1873848 Symfony\Component\DependencyInjection\Container->get( ) ../appDevDebugProjectContainer.php:1532
15 0.0210 1874240 appDevDebugProjectContainer->getSecurity_ContextService( ) ../bootstrap.php.cache:211
16 0.0210 1874504 Symfony\Component\DependencyInjection\Container->get( ) ../appDevDebugProjectContainer.php:1714
17 0.0210 1874928 appDevDebugProjectContainer->getSecurity_Authentication_ManagerService( ) ../bootstrap.php.cache:211
18 0.0217 1922792 Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider->__construct( ) ../appDevDebugProjectContainer.php:3071
19 0.0217 1922840 Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider->__construct( ) ../DaoAuthenticationProvider.php:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment