Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
SecurityServiceProvider | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
register | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | namespace Apie\LaravelApie\Providers; |
3 | |
4 | use Apie\LaravelApie\Wrappers\Security\ApieUserProvider; |
5 | use Apie\LaravelApie\Wrappers\Security\UserAuthenticationContextBuilder; |
6 | use Illuminate\Support\Facades\Auth; |
7 | use Illuminate\Support\ServiceProvider; |
8 | |
9 | class SecurityServiceProvider extends ServiceProvider |
10 | { |
11 | public function register() |
12 | { |
13 | // sf variation: security.yaml |
14 | $this->app->bind(UserAuthenticationContextBuilder::class); |
15 | $this->app->tag(UserAuthenticationContextBuilder::class, ['apie.core.context_builder']); |
16 | Auth::provider('apie', function ($app) { |
17 | return new ApieUserProvider($app->get('apie')); |
18 | }); |
19 | } |
20 | } |