Skip to content

Commit

Permalink
Fix error DependancyInjection Exception for Symfony 2.x (#551)
Browse files Browse the repository at this point in the history
* Fix error DependancyInjection Exception

I changed alias to class because Symfony retraces an Injection dependency error :
[Symfony\Component\DependencyInjection\Exception\RuntimeException]                                                                                                                                      
  The definition for "fos\oauthserverbundle\controller\tokencontroller" has no class. If you intend to inject this service dynamically at runtime, please mark it as synthetic=true. If this is an abstr  
  act definition solely used by child definitions, please add abstract=true, otherwise specify a class to get rid of this error.

* Update oauth.xml

Fix error dependancy injection
  • Loading branch information
ThomAille authored and dkarlovi committed Apr 18, 2018
1 parent 98a6642 commit 5cc4c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/config/oauth.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<argument>%fos_oauth_server.server.options%</argument>
</service>

<service id="FOS\OAuthServerBundle\Controller\TokenController">
<service id="FOS\OAuthServerBundle\Controller\TokenController" class="FOS\OAuthServerBundle\Controller\TokenController">
<argument type="service" id="fos_oauth_server.server" />
</service>

Expand Down

0 comments on commit 5cc4c85

Please sign in to comment.