Laravel AT Protocol Client (alpha & unstable)

Register generator commands and add config paths

Changed files
+18
config
src
+14
config/client.php
··· 176 177 'redirect_to' => env('ATP_SCOPE_REDIRECT', '/login'), 178 ], 179 ];
··· 176 177 'redirect_to' => env('ATP_SCOPE_REDIRECT', '/login'), 178 ], 179 + 180 + /* 181 + |-------------------------------------------------------------------------- 182 + | Generator Settings 183 + |-------------------------------------------------------------------------- 184 + | 185 + | Configure paths for the make:atp-client and make:atp-request commands. 186 + | Paths are relative to the application base path. 187 + | 188 + */ 189 + 'generators' => [ 190 + 'client_path' => 'app/Services/Clients', 191 + 'request_path' => 'app/Services/Clients/Requests', 192 + ], 193 ];
+4
src/AtpClientServiceProvider.php
··· 16 use SocialDept\AtpClient\Enums\ScopeEnforcementLevel; 17 use SocialDept\AtpClient\Http\Middleware\RequiresScopeMiddleware; 18 use SocialDept\AtpClient\Console\GenerateOAuthKeyCommand; 19 use SocialDept\AtpClient\Contracts\CredentialProvider; 20 use SocialDept\AtpClient\Contracts\KeyStore; 21 use SocialDept\AtpClient\Http\Controllers\ClientMetadataController; ··· 140 141 $this->commands([ 142 GenerateOAuthKeyCommand::class, 143 ]); 144 } 145
··· 16 use SocialDept\AtpClient\Enums\ScopeEnforcementLevel; 17 use SocialDept\AtpClient\Http\Middleware\RequiresScopeMiddleware; 18 use SocialDept\AtpClient\Console\GenerateOAuthKeyCommand; 19 + use SocialDept\AtpClient\Console\MakeAtpClientCommand; 20 + use SocialDept\AtpClient\Console\MakeAtpRequestCommand; 21 use SocialDept\AtpClient\Contracts\CredentialProvider; 22 use SocialDept\AtpClient\Contracts\KeyStore; 23 use SocialDept\AtpClient\Http\Controllers\ClientMetadataController; ··· 142 143 $this->commands([ 144 GenerateOAuthKeyCommand::class, 145 + MakeAtpClientCommand::class, 146 + MakeAtpRequestCommand::class, 147 ]); 148 } 149