0

I used an AuthorizationServer of League\OAuth2\Server\AuthorizationServer in my constructor and added in Service.yaml

App\Service\SecurityService:
    arguments: ['@form.server_params', '@service_container']

But showing an error of Argument 1 passed to App\Service\SecurityService::__construct() must be an instance of League\OAuth2\Server\AuthorizationServer, instance of Symfony\Component\Form\Util\ServerParams given, called in C:\xampp\htdocs\codeLibrary\code_library\var\cache\dev\Container5BmKxp9\getSecurityControllerService.php on line 29

alen
  • 1

0 Answers0