| 1 | <?php |
||
| 11 | class CreateScopeCommand extends Command |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'oauth2-server:create-scope {id?}'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Create new scopes for your OAuth2 server'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var ScopeRepository |
||
| 26 | */ |
||
| 27 | protected $scopes; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * CreateScopeCommand constructor. |
||
| 31 | * @param ScopeRepository $scopes |
||
| 32 | */ |
||
| 33 | 19 | public function __construct(ScopeRepository $scopes) |
|
| 39 | |||
| 40 | |||
| 41 | 5 | public function handle() |
|
| 55 | } |
||
| 56 |