| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | 35 | public function register(Application $app) |
|
| 18 | { |
||
| 19 | $app[Validator::LOGIN] = $app->share(function () use ($app) { |
||
| 20 | 10 | return new Validator\SymfonyLoginValidator($app['validator']); |
|
| 21 | 35 | }); |
|
| 22 | 35 | $app[Validator::REGISTRATION] = $app->share(function () use ($app) { |
|
| 23 | 15 | return new Validator\SymfonyRegistrationValidator($app['validator']); |
|
| 24 | 35 | }); |
|
| 25 | 35 | } |
|
| 26 | |||
| 39 | } |