Move middleware to a subfolder

This commit is contained in:
Pierre Rudloff 2020-10-20 23:13:48 +02:00
parent 496ac212e2
commit 123a6c5ad9
7 changed files with 13 additions and 10 deletions

View file

@ -6,11 +6,11 @@
namespace Alltube\Controller;
use Alltube\CspMiddleware;
use Alltube\Library\Exception\PasswordException;
use Alltube\Library\Exception\AlltubeLibraryException;
use Alltube\Library\Exception\WrongPasswordException;
use Alltube\Locale;
use Alltube\Middleware\CspMiddleware;
use Exception;
use Slim\Http\StatusCode;
use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;

View file

@ -1,7 +1,8 @@
<?php
namespace Alltube;
namespace Alltube\Middleware;
use Alltube\Config;
use ParagonIE\CSPBuilder\CSPBuilder;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\MessageInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Alltube;
namespace Alltube\Middleware;
use Psr\Container\ContainerInterface;
use Slim\Http\Request;

View file

@ -4,8 +4,10 @@
* LocaleMiddleware class.
*/
namespace Alltube;
namespace Alltube\Middleware;
use Alltube\Locale;
use Alltube\LocaleManager;
use Psr\Container\ContainerInterface;
use Slim\Http\Request;
use Slim\Http\Response;

View file

@ -1,6 +1,6 @@
<?php
namespace Alltube;
namespace Alltube\Middleware;
use Psr\Container\ContainerInterface;
use Slim\Http\Request;

View file

@ -6,13 +6,13 @@ use Alltube\ConfigFactory;
use Alltube\Controller\DownloadController;
use Alltube\Controller\FrontController;
use Alltube\Controller\JsonController;
use Alltube\CspMiddleware;
use Alltube\ErrorHandler;
use Alltube\LinkHeaderMiddleware;
use Alltube\LocaleManagerFactory;
use Alltube\LocaleMiddleware;
use Alltube\LoggerFactory;
use Alltube\RouterPathMiddleware;
use Alltube\Middleware\CspMiddleware;
use Alltube\Middleware\LinkHeaderMiddleware;
use Alltube\Middleware\LocaleMiddleware;
use Alltube\Middleware\RouterPathMiddleware;
use Alltube\ViewFactory;
use Slim\App;
use Slim\Container;

View file

@ -7,7 +7,7 @@
namespace Alltube\Test;
use Alltube\LocaleManager;
use Alltube\LocaleMiddleware;
use Alltube\Middleware\LocaleMiddleware;
use Slim\Container;
use Slim\Http\Environment;
use Slim\Http\Request;