| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function __invoke() |
||
| 12 | { |
||
| 13 | return [ |
||
| 14 | 'templates' => [ |
||
| 15 | 'paths' => [ |
||
| 16 | 'register' => [__DIR__ . '/../templates/register'], |
||
| 17 | ], |
||
| 18 | ], |
||
| 19 | 'dependencies' => [ |
||
| 20 | 'factories' => [ |
||
| 21 | Action\RegisterAction::class => Action\RegisterActionFactory::class, |
||
| 22 | Action\HandleRegisterAction::class => Action\HandleRegisterActionFactory::class, |
||
| 23 | Service\RegisterService::class => Service\RegisterServiceFactory::class, |
||
| 24 | Filter\RegisterFilter::class => InvokableFactory::class, |
||
| 25 | ], |
||
| 26 | ], |
||
| 27 | |||
| 28 | 'routes' => [ |
||
| 29 | [ |
||
| 30 | 'name' => 'register', |
||
| 31 | 'path' => '/register', |
||
| 32 | 'middleware' => Action\RegisterAction::class, |
||
| 33 | 'allowed_methods' => ['GET'], |
||
| 34 | ], |
||
| 35 | [ |
||
| 36 | 'name' => 'register-handle', |
||
| 37 | 'path' => '/register-handle', |
||
| 38 | 'middleware' => Action\HandleRegisterAction::class, |
||
| 39 | 'allowed_methods' => ['POST'], |
||
| 40 | ] |
||
| 41 | ], |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |