Skip to content

Commit 10d68c1

Browse files
committed
Add Authorizer alias to Lumen guide
In the Lumen getting started guide, add the class_alias registration for the Authorizer class
1 parent 9589d7c commit 10d68c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/getting-started/lumen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ $app->routeMiddleware([
3636
]);
3737
```
3838

39+
... and Authorizer alias
40+
```php
41+
class_alias(\LucaDegasperi\OAuth2Server\Facades\Authorizer::class, 'Authorizer');
42+
```
43+
3944
### Copy config
4045

4146
Copy `vendor/lucadegasperi/oauth2-server-laravel/config/oauth2.php` to your own config folder (`config/oauth2.php` in your project root). It has to be the correct config folder as it is registered using `$app->configure()`.

0 commit comments

Comments
 (0)