| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function register(Container $app) |
||
| 26 | { |
||
| 27 | !isset($app['encryptor']) && $app['encryptor'] = function ($app) { |
||
| 28 | return new Encryptor( |
||
| 29 | $app['config']['app_id'], |
||
| 30 | $app['config']['token'], |
||
| 31 | $app['config']['aes_key'] |
||
| 32 | ); |
||
| 33 | }; |
||
| 34 | |||
| 35 | !isset($app['server']) && $app['server'] = function ($app) { |
||
| 36 | $guard = new Guard($app); |
||
| 37 | $guard->push(new EchoStrHandler($app)); |
||
| 38 | |||
| 39 | return $guard; |
||
| 40 | }; |
||
| 43 |