@@ -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,31 +2,17 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Bone\Mvc; |
| 4 | 4 | |
| 5 | -use Barnacle\Container; |
|
| 6 | -use Barnacle\RegistrationInterface; |
|
| 7 | -use Bone\Mvc\Router\Decorator\ExceptionDecorator; |
|
| 8 | -use Bone\Mvc\Router\Decorator\NotFoundDecorator; |
|
| 9 | -use Bone\Mvc\Router\NotFoundException; |
|
| 10 | -use Bone\Mvc\Router\PlatesStrategy; |
|
| 11 | -use Bone\Mvc\Router\RouterConfigInterface; |
|
| 12 | -use Bone\Mvc\View\PlatesEngine; |
|
| 13 | -use Bone\Server\Environment; |
|
| 14 | -use Bone\Server\I18nHandler; |
|
| 15 | -use Bone\Server\SiteConfig; |
|
| 16 | -use Del\SessionManager; |
|
| 17 | -use League\Route\Router; |
|
| 18 | -use League\Route\RouteGroup; |
|
| 19 | -use League\Route\Strategy\ApplicationStrategy; |
|
| 20 | -use League\Route\Strategy\JsonStrategy; |
|
| 21 | -use PDO; |
|
| 22 | -use Psr\Http\Message\ResponseInterface; |
|
| 23 | -use Psr\Http\Message\ServerRequestInterface; |
|
| 24 | -use Laminas\Diactoros\ResponseFactory; |
|
| 25 | -use Laminas\Diactoros\ServerRequestFactory; |
|
| 26 | -use Laminas\Diactoros\Response; |
|
| 27 | -use Laminas\Diactoros\Response\RedirectResponse; |
|
| 28 | -use Laminas\Diactoros\Uri; |
|
| 29 | -use Laminas\HttpHandlerRunner\Emitter\SapiEmitter; |
|
| 5 | +use Barnacle\Container; |
|
| 6 | +use Bone\Mvc\Router\NotFoundException; |
|
| 7 | +use Bone\Server\Environment; |
|
| 8 | +use Bone\Server\I18nHandler; |
|
| 9 | +use Bone\Server\SiteConfig; |
|
| 10 | +use Del\SessionManager; |
|
| 11 | +use League\Route\Router; |
|
| 12 | +use Psr\Http\Message\ServerRequestInterface; |
|
| 13 | +use Laminas\Diactoros\ServerRequestFactory; |
|
| 14 | +use Laminas\Diactoros\Response\RedirectResponse; |
|
| 15 | +use Laminas\HttpHandlerRunner\Emitter\SapiEmitter; |
|
| 30 | 16 | use Laminas\I18n\Translator\Translator; |
| 31 | 17 | |
| 32 | 18 | class Application |
@@ -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 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Bone\Mvc\Controller; |
| 4 | 4 | |
| 5 | 5 | use Bone\Exception; |
| 6 | -use League\Route\Http\Exception\NotFoundException; |
|
| 7 | 6 | use InvalidArgumentException; |
| 8 | 7 | use Psr\Http\Message\ResponseInterface; |
| 9 | 8 | use Psr\Http\Message\ServerRequestInterface; |
@@ -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 | { |
@@ -3,7 +3,6 @@ discard block |
||
| 3 | 3 | namespace Bone\Mvc; |
| 4 | 4 | |
| 5 | 5 | use Barnacle\Container; |
| 6 | -use Barnacle\Exception\NotFoundException; |
|
| 7 | 6 | use Barnacle\RegistrationInterface; |
| 8 | 7 | use Bone\I18n\I18nRegistrationInterface; |
| 9 | 8 | use Bone\Mvc\Controller\DownloadController; |
@@ -15,18 +14,14 @@ discard block |
||
| 15 | 14 | use Bone\Mvc\View\Extension\Plates\AlertBox; |
| 16 | 15 | use Bone\Mvc\View\Extension\Plates\LocaleLink; |
| 17 | 16 | use Bone\Mvc\View\Extension\Plates\Translate; |
| 18 | -use Bone\Mvc\View\ViewEngine; |
|
| 19 | -use Bone\View\Helper\Paginator; |
|
| 20 | 17 | use Bone\Mvc\View\PlatesEngine; |
| 21 | 18 | use Bone\Service\TranslatorFactory; |
| 22 | 19 | use League\Plates\Template\Folders; |
| 23 | 20 | use League\Route\Router; |
| 24 | -use League\Route\Strategy\ApplicationStrategy; |
|
| 25 | 21 | use League\Route\Strategy\JsonStrategy; |
| 26 | 22 | use Locale; |
| 27 | 23 | use PDO; |
| 28 | 24 | use Laminas\Diactoros\ResponseFactory; |
| 29 | -use Laminas\I18n\Translator\Loader\Gettext; |
|
| 30 | 25 | use Laminas\I18n\Translator\Translator; |
| 31 | 26 | |
| 32 | 27 | class ApplicationPackage implements RegistrationInterface |
@@ -2,10 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Bone\Mvc\Router\Decorator; |
| 4 | 4 | |
| 5 | -use Bone\Mvc\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 | |
@@ -4,10 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Bone\Mvc\Router\NotFoundException; |
| 6 | 6 | use Locale; |
| 7 | -use Psr\Http\Message\ResponseInterface; |
|
| 8 | 7 | use Psr\Http\Message\ServerRequestInterface; |
| 9 | -use Psr\Http\Server\MiddlewareInterface; |
|
| 10 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 11 | 8 | use Laminas\I18n\Translator\Translator; |
| 12 | 9 | |
| 13 | 10 | class I18nHandler |