abterphp /
contact
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | use AbterPhp\Contact\Constant\Routes; |
||
| 6 | use Opulence\Routing\Router; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * ---------------------------------------------------------- |
||
| 10 | * Create all of the routes for the HTTP kernel |
||
| 11 | * ---------------------------------------------------------- |
||
| 12 | * |
||
| 13 | * @var Router $router |
||
| 14 | */ |
||
| 15 | $router->group( |
||
| 16 | ['controllerNamespace' => 'AbterPhp\Contact\Http\Controllers'], |
||
| 17 | function (Router $router) { |
||
| 18 | /** @see \AbterPhp\Contact\Http\Controllers\Website\Contact::submit() */ |
||
| 19 | $router->post( |
||
| 20 | Routes::PATH_CONTACT, |
||
| 21 | 'Website\Contact@submit', |
||
| 22 | [OPTION_NAME => Routes::ROUTE_CONTACT] |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 23 | ); |
||
| 24 | } |
||
| 25 | ); |
||
| 26 |