Skip to content

Commit d67def8

Browse files
committed
Deprecate Lumen service provider
1 parent 8c42e67 commit d67def8

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

src/Lumen/OAuth2ServerServiceProvider.php

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,16 @@
1111

1212
namespace LucaDegasperi\OAuth2Server\Lumen;
1313

14-
use LucaDegasperi\OAuth2Server\OAuth2ServerServiceProvider as BaseOAuth2ServerServiceProvider;
14+
use LucaDegasperi\OAuth2Server\OAuth2ServerServiceProvider as ServiceProvider;
1515

1616
/**
1717
* This is the Lumen oauth server service provider class.
1818
*
19+
* @deprecated since version 5.1. Use the base OAuth2ServerServiceProvider instead.
20+
*
1921
* @author Luca Degasperi <[email protected]>
2022
*/
21-
class OAuth2ServerServiceProvider extends BaseOAuth2ServerServiceProvider
23+
class OAuth2ServerServiceProvider extends ServiceProvider
2224
{
23-
/**
24-
* Boot the service provider.
25-
*
26-
* @return void
27-
*/
28-
public function boot()
29-
{
30-
// Lumen does not support route filters.
31-
}
32-
33-
/**
34-
* Register the service provider.
35-
*
36-
* @return void
37-
*/
38-
public function register()
39-
{
40-
parent::register();
41-
42-
$this->registerConfiguration();
43-
}
44-
45-
/**
46-
* Register the configuration.
47-
*
48-
* @return void
49-
*/
50-
public function registerConfiguration()
51-
{
52-
$this->app->configure('oauth2');
53-
}
25+
//
5426
}

0 commit comments

Comments
 (0)