Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
SecurityServiceProvider
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 register
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Apie\LaravelApie\Providers;
3
4use Apie\LaravelApie\Wrappers\Security\ApieUserProvider;
5use Apie\LaravelApie\Wrappers\Security\UserAuthenticationContextBuilder;
6use Illuminate\Support\Facades\Auth;
7use Illuminate\Support\ServiceProvider;
8
9class 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}