Skip to content

Commit 504530d

Browse files
oterowebGuilhemN
authored andcommitted
fixing error (#429)
Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "Container" of class "ApiBundle\Controller\MemberController". Did you mean to call "setContainer
1 parent af93037 commit 504530d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ fos_oauth_server:
569569
Before you can generate tokens, you need to create a Client using the ClientManager.
570570

571571
``` php
572-
$clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default');
572+
$clientManager = $this->container->get('fos_oauth_server.client_manager.default');
573573
$client = $clientManager->createClient();
574574
$client->setRedirectUris(array('http://www.example.com'));
575575
$client->setAllowedGrantTypes(array('token', 'authorization_code'));

0 commit comments

Comments
 (0)