oauth2-server-bundle icon indicating copy to clipboard operation
oauth2-server-bundle copied to clipboard

There are no commands defined in the "OAuth2" namespace.

Open balvirsingh opened this issue 5 years ago • 1 comments

symfony 4.4.8 php 7.3

When I run the command - php bin/console OAuth2:CreateScope scope read

it gives the following error - There are no commands defined in the "OAuth2" namespace.

balvirsingh avatar May 01 '20 12:05 balvirsingh

You have to register all commands as service:

services:

OAuth2\ServerBundle\Command\CreateClientCommand:
    tags:
    - { name: 'console.command', command: 'OAuth2:CreateClient' }

OAuth2\ServerBundle\Command\CreateScopeCommand:
    tags:
    - { name: 'console.command', command: 'OAuth2:CreateScope' }
    
OAuth2\ServerBundle\Command\CreateUserCommand:
    tags:
    - { name: 'console.command', command: 'OAuth2:CreateUser' }

myspulin avatar Jun 07 '20 07:06 myspulin