stupidlysimple /
php
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * StupidlySimple - A PHP Framework For Lazy Developers. |
||
| 4 | * |
||
| 5 | * @author Fariz Luqman <[email protected]> |
||
| 6 | * @copyright 2017 Fariz Luqman |
||
| 7 | * @license MIT |
||
| 8 | * |
||
| 9 | * @link https://stupidlysimple.github.io/ |
||
| 10 | */ |
||
| 11 | |||
| 12 | /* |
||
| 13 | |-------------------------------------------------------------------------- |
||
| 14 | | Login and Registration Page |
||
| 15 | |-------------------------------------------------------------------------- |
||
| 16 | | |
||
| 17 | | This will display the login and register page respectively |
||
| 18 | | |
||
| 19 | */ |
||
| 20 | Router::get('/login', 'auth/login'); |
||
|
0 ignored issues
–
show
|
|||
| 21 | Router::get('/register', 'auth/register'); |
||
| 22 | |||
| 23 | /* |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | | Login Controller Demonstration |
||
| 26 | |-------------------------------------------------------------------------- |
||
| 27 | | |
||
| 28 | | This is to demonstrate using Controller to manage authentication |
||
| 29 | | |
||
| 30 | */ |
||
| 31 | Router::post('/login', 'Controller\Auth@authenticate'); |
||
| 32 | Router::post('/register', 'Controller\Auth@register'); |
||
| 33 | Router::get('/logout', 'Controller\Auth@logout'); |
||
| 34 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths