@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace Mouf\Mvc\Splash\Routers; |
| 4 | 4 | |
| 5 | 5 | use TheCodingMachine\Splash\Utils\SplashException; |
| 6 | -use Psr\Http\Message\ResponseInterface as Response; |
|
| 7 | 6 | use Psr\Http\Message\ResponseInterface; |
| 8 | 7 | use Psr\Http\Message\ServerRequestInterface as Request; |
| 9 | 8 | use Psr\Http\Server\MiddlewareInterface; |
| 10 | 9 | use Psr\Http\Server\RequestHandlerInterface; |
| 11 | -use Psr\Log\LoggerInterface; |
|
| 12 | 10 | |
| 13 | 11 | /** |
| 14 | 12 | * This router : |
@@ -180,6 +180,9 @@ |
||
| 180 | 180 | return 'Unknown type variable'; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | + /** |
|
| 184 | + * @return string |
|
| 185 | + */ |
|
| 183 | 186 | private static function displayFile($file) |
| 184 | 187 | { |
| 185 | 188 | $realpath = realpath($file); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | protected $exception; |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @param TemplateInterface $template The template used by Splash for displaying error pages (HTTP 400, 404 and 500). |
|
| 75 | + * @param DefaultSplashTemplate $template The template used by Splash for displaying error pages (HTTP 400, 404 and 500). |
|
| 76 | 76 | * @param HtmlBlock $contentBlock The content block the template will be written into. |
| 77 | 77 | * @param bool $debugMode Whether we should display exception stacktrace or not in HTTP 500. |
| 78 | 78 | */ |