@@ -48,7 +48,6 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * Ahoy! There nay be boardin without yer configuration |
| 50 | 50 | * |
| 51 | - * @param array $config |
|
| 52 | 51 | * @return Application |
| 53 | 52 | */ |
| 54 | 53 | public static function ahoy() |
@@ -2,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Bone; |
| 4 | 4 | |
| 5 | -use Barnacle\Container; |
|
| 6 | -use Bone\Http\Middleware\Stack; |
|
| 7 | -use Bone\Router\Router; |
|
| 8 | -use Bone\Router\NotFoundException; |
|
| 9 | -use Bone\Server\Environment; |
|
| 10 | -use Bone\Server\SiteConfig; |
|
| 11 | -use Del\SessionManager; |
|
| 12 | -use Laminas\Diactoros\ServerRequestFactory; |
|
| 13 | -use Laminas\Diactoros\Response\RedirectResponse; |
|
| 14 | -use Laminas\HttpHandlerRunner\Emitter\SapiEmitter; |
|
| 5 | +use Barnacle\Container; |
|
| 6 | +use Bone\Http\Middleware\Stack; |
|
| 7 | +use Bone\Router\Router; |
|
| 8 | +use Bone\Router\NotFoundException; |
|
| 9 | +use Bone\Server\Environment; |
|
| 10 | +use Bone\Server\SiteConfig; |
|
| 11 | +use Del\SessionManager; |
|
| 12 | +use Laminas\Diactoros\ServerRequestFactory; |
|
| 13 | +use Laminas\Diactoros\Response\RedirectResponse; |
|
| 14 | +use Laminas\HttpHandlerRunner\Emitter\SapiEmitter; |
|
| 15 | 15 | use Psr\Http\Server\RequestHandlerInterface; |
| 16 | 16 | |
| 17 | 17 | class Application |
@@ -294,8 +294,7 @@ |
||
| 294 | 294 | /** |
| 295 | 295 | * @param string $view |
| 296 | 296 | * @param string $folder |
| 297 | - * @param array $registeredViews |
|
| 298 | - * @param PlatesEngine $viewEngine |
|
| 297 | + * @param Folders $registeredViews |
|
| 299 | 298 | */ |
| 300 | 299 | private function overrideViewFolder(string $view, string $folder, Folders $registeredViews): void |
| 301 | 300 | { |
@@ -162,7 +162,6 @@ discard block |
||
| 162 | 162 | /** |
| 163 | 163 | * Get a middleware that will decorate a NotFoundException |
| 164 | 164 | * |
| 165 | - * @param \League\Route\Http\Exception\NotFoundException $exception |
|
| 166 | 165 | * |
| 167 | 166 | * @return \Psr\Http\Server\MiddlewareInterface |
| 168 | 167 | */ |
@@ -174,7 +173,7 @@ discard block |
||
| 174 | 173 | /** |
| 175 | 174 | * Get a middleware that will decorate a NotAllowedException |
| 176 | 175 | * |
| 177 | - * @param \League\Route\Http\Exception\NotFoundException $e |
|
| 176 | + * @param \League\Route\Http\Exception\MethodNotAllowedException $e |
|
| 178 | 177 | * |
| 179 | 178 | * @return \Psr\Http\Server\MiddlewareInterface |
| 180 | 179 | */ |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Psr\Http\Server\MiddlewareInterface; |
| 18 | 18 | use Laminas\Diactoros\Response; |
| 19 | 19 | use Laminas\Diactoros\Response\HtmlResponse; |
| 20 | -use Laminas\Diactoros\Response\JsonResponse; |
|
| 21 | 20 | use Laminas\Diactoros\Stream; |
| 22 | 21 | |
| 23 | 22 | class PlatesStrategy extends ApplicationStrategy implements StrategyInterface |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param Route $route |
|
| 19 | 18 | */ |
| 20 | 19 | public function removeRoute(Route $routeToRemove): void |
| 21 | 20 | { |
@@ -2,10 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Bone\Router\Decorator; |
| 4 | 4 | |
| 5 | -use Bone\View\ViewEngine; |
|
| 6 | 5 | use Psr\Http\Message\ResponseInterface; |
| 7 | 6 | use Psr\Http\Message\ServerRequestInterface; |
| 8 | -use Psr\Http\Server\MiddlewareInterface; |
|
| 9 | 7 | use Psr\Http\Server\RequestHandlerInterface; |
| 10 | 8 | use Laminas\Diactoros\Response\HtmlResponse; |
| 11 | 9 | |