Skip to content

Commit 5cc4c85

Browse files
ThomAilledkarlovi
authored andcommitted
Fix error DependancyInjection Exception for Symfony 2.x (#551)
* 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
1 parent 98a6642 commit 5cc4c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Resources/config/oauth.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<argument>%fos_oauth_server.server.options%</argument>
2424
</service>
2525

26-
<service id="FOS\OAuthServerBundle\Controller\TokenController">
26+
<service id="FOS\OAuthServerBundle\Controller\TokenController" class="FOS\OAuthServerBundle\Controller\TokenController">
2727
<argument type="service" id="fos_oauth_server.server" />
2828
</service>
2929

0 commit comments

Comments
 (0)