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