Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function register(Container $pimple) |
||
28 | { |
||
29 | $pimple['sso'] = function ($app) { |
||
30 | return new SsoClient($app); |
||
31 | }; |
||
32 | |||
33 | $pimple['oauth'] = function ($app) { |
||
34 | if (!$app['request']->hasSession()) { |
||
35 | $app['request']->setSession(new Session()); |
||
36 | } |
||
37 | |||
38 | return new OAuthClient($app); |
||
39 | }; |
||
42 |