Permalink
Browse files

Fixed the compiler pass to allow parametrized classes

  • Loading branch information...
stof committed Oct 16, 2012
1 parent 719c68f commit c4376960d7c9acdb47577bfb45321fb0b57f0ced
Showing with 2 additions and 1 deletion.
  1. +2 −1 DependencyInjection/Compiler/GrantExtensionsCompilerPass.php
@@ -15,7 +15,8 @@ class GrantExtensionsCompilerPass implements CompilerPassInterface
public function process(ContainerBuilder $container)
{
$storageDefinition = $container->findDefinition('fos_oauth_server.storage');
- $storageClass = new \ReflectionClass($storageDefinition->getClass());
+ $className = $container->getParameterBag()->resolveValue($storageDefinition->getClass());
+ $storageClass = new \ReflectionClass($className);
if (!$storageClass->implementsInterface('FOS\OAuthServerBundle\Storage\GrantExtensionDispatcherInterface')) {
return;
}

0 comments on commit c437696

Please sign in to comment.