-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorController.php
More file actions
40 lines (37 loc) · 935 Bytes
/
ErrorController.php
File metadata and controls
40 lines (37 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Arikaim
*
* @link http://www.arikaim.com
* @copyright Copyright (c) Konstantin Atanasov <info@arikaim.com>
* @license http://www.arikaim.com/license
*
*/
namespace Arikaim\Core\Controllers;
use Arikaim\Core\Controllers\Controller;
/**
* Page error controller
*/
class ErrorController extends Controller
{
/**
* Init controller, override this method in child classes
*
* @return void
*/
public function init()
{
}
/**
* Show page not found error
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param \Psr\Http\Message\ResponseInterface $response
* @param Validator $data
* @return Psr\Http\Message\ResponseInterface
*/
public function showPageNotFound($request, $response, $data)
{
return $this->pageNotFound($response,$data->toArray());
}
}