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;