1 | <?php |
||||||
2 | |||||||
3 | declare(strict_types=1); |
||||||
4 | |||||||
5 | use AbterPhp\Admin\Config\Routes as RoutesConfig; |
||||||
6 | use AbterPhp\Admin\Constant\Route as RouteConstant; |
||||||
7 | use Opulence\Routing\Router; |
||||||
8 | |||||||
9 | /** |
||||||
10 | * ---------------------------------------------------------- |
||||||
11 | * Create all of the routes for the HTTP kernel |
||||||
12 | * ---------------------------------------------------------- |
||||||
13 | * |
||||||
14 | * @var Router $router |
||||||
15 | */ |
||||||
16 | $router->group( |
||||||
17 | ['controllerNamespace' => 'AbterPhp\Admin\\Http\\Controllers'], |
||||||
18 | function (Router $router) { |
||||||
19 | /** @see \AbterPhp\Admin\Http\Controllers\Admin\Form\Login::display() */ |
||||||
20 | $router->get( |
||||||
21 | RoutesConfig::getLoginPath(), |
||||||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||||||
22 | 'Admin\Form\Login@display', |
||||||
23 | [RouteConstant::OPTION_NAME => RouteConstant::LOGIN_NEW] |
||||||
24 | ); |
||||||
25 | |||||||
26 | /** @see \AbterPhp\Admin\Http\Controllers\Admin\Execute\Login::execute() */ |
||||||
27 | $router->post( |
||||||
28 | RoutesConfig::getLoginPath(), |
||||||
29 | 'Admin\Execute\Login@execute', |
||||||
30 | [RouteConstant::OPTION_NAME => RouteConstant::LOGIN_EXECUTE] |
||||||
31 | ); |
||||||
32 | |||||||
33 | /** @see \AbterPhp\Admin\Http\Controllers\Admin\Execute\Logout::execute() */ |
||||||
34 | $router->get( |
||||||
35 | RoutesConfig::getLogoutPath(), |
||||||
0 ignored issues
–
show
The method
AbterPhp\Admin\Config\Routes::getLogoutPath() is not static, but was called statically.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
36 | 'Admin\Execute\Logout@execute', |
||||||
37 | [RouteConstant::OPTION_NAME => RouteConstant::LOGOUT_EXECUTE] |
||||||
38 | ); |
||||||
39 | } |
||||||
40 | ); |
||||||
41 |