Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. Cannot resolve argument $slackOauthService of "AppControllerPanelSlackSigninController::afterOauth()": Cannot autowire service "AppServiceSlackSlackOauthService": argument "$httpClient" of method "__construct()" references interface "GuzzleHttpClientInterface" but no such service exists. Did you create a class that implements this interface?
  2.  
  3. public function __construct( ClientInterface $httpClient, EntityManagerInterface $em ) {
  4. $this->httpClient = $httpClient;
  5. $this->em = $em;
  6. }
  7.  
  8. services:
  9. # default configuration for services in *this* file
  10. _defaults:
  11. autowire: true # Automatically injects dependencies in your services.
  12. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  13.  
  14. # makes classes in src/ available to be used as services
  15. # this creates a service per class whose id is the fully-qualified class name
  16. App:
  17. resource: '../src/*'
  18. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  19.  
  20. # controllers are imported separately to make sure services can be injected
  21. # as action arguments even if you don't extend any base controller class
  22. AppController:
  23. resource: '../src/Controller'
  24. tags: ['controller.service_arguments']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement