Skip to content

Commit 8291dc4

Browse files
Sebastian KlierGuilhemN
authored andcommitted
fix missing namespace, ContainerAwareTrait usage for sf3
1 parent 0c1ee39 commit 8291dc4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Controller/AuthorizeController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler;
1616
use OAuth2\OAuth2;
1717
use OAuth2\OAuth2ServerException;
18-
use Symfony\Component\DependencyInjection\ContainerAware;
18+
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
1919
use Symfony\Component\HttpFoundation\Request;
2020
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2121
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
@@ -26,8 +26,10 @@
2626
*
2727
* @author Chris Jones <[email protected]>
2828
*/
29-
class AuthorizeController extends ContainerAware
29+
class AuthorizeController
3030
{
31+
use ContainerAwareTrait;
32+
3133
/**
3234
* @var \FOS\OAuthServerBundle\Model\ClientInterface
3335
*/

DependencyInjection/Compiler/TokenStorageCompilerPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
16+
use Symfony\Component\DependencyInjection\Reference;
1617

1718
/**
1819
* @author Andras Ratz <[email protected]>
@@ -35,4 +36,4 @@ public function process(ContainerBuilder $container)
3536
$definition->replaceArgument(0, $tokenStorageReference);
3637
}
3738

38-
}
39+
}

0 commit comments

Comments
 (0)