bluzphp /
skeleton
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Logout proccess |
||
| 4 | * |
||
| 5 | * @return closure |
||
| 6 | * @author Anton Shevchuk |
||
| 7 | * @created 20.07.11 18:39 |
||
| 8 | */ |
||
| 9 | |||
| 10 | namespace Application; |
||
| 11 | |||
| 12 | use Application\Auth as AppAuth; |
||
| 13 | use Bluz\Controller\Controller; |
||
|
0 ignored issues
–
show
|
|||
| 14 | use Bluz\Proxy\Auth; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\Auth was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 15 | use Bluz\Proxy\Messages; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\Messages was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 16 | use Bluz\Proxy\Response; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\Response was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | return function () { |
||
| 22 | /** |
||
| 23 | * @var Controller $this |
||
| 24 | */ |
||
| 25 | 1 | if ($this->user()) { |
|
| 26 | 1 | AppAuth\Provider\Cookie::remove($this->user()->getId()); |
|
| 27 | 1 | Auth::clearIdentity(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | Messages::addNotice('You are signout'); |
|
| 31 | 1 | Response::redirectTo('index', 'index'); |
|
| 32 | }; |
||
| 33 |
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