mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Removed mezzio-helpers and used ContentLengthMiddleware from shlink-common
This commit is contained in:
parent
db6c83eefd
commit
9c48e6578d
@ -36,7 +36,6 @@
|
|||||||
"lstrojny/functional-php": "^1.15",
|
"lstrojny/functional-php": "^1.15",
|
||||||
"mezzio/mezzio": "^3.3",
|
"mezzio/mezzio": "^3.3",
|
||||||
"mezzio/mezzio-fastroute": "^3.1",
|
"mezzio/mezzio-fastroute": "^3.1",
|
||||||
"mezzio/mezzio-helpers": "^5.3",
|
|
||||||
"mezzio/mezzio-problem-details": "^1.3",
|
"mezzio/mezzio-problem-details": "^1.3",
|
||||||
"mezzio/mezzio-swoole": "^3.1",
|
"mezzio/mezzio-swoole": "^3.1",
|
||||||
"monolog/monolog": "^2.0",
|
"monolog/monolog": "^2.0",
|
||||||
@ -47,7 +46,7 @@
|
|||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
"pugx/shortid-php": "^0.7",
|
"pugx/shortid-php": "^0.7",
|
||||||
"ramsey/uuid": "^3.9",
|
"ramsey/uuid": "^3.9",
|
||||||
"shlinkio/shlink-common": "dev-main#62d4b84 as 3.5",
|
"shlinkio/shlink-common": "dev-main#2cf5e45 as 3.5",
|
||||||
"shlinkio/shlink-config": "^1.0",
|
"shlinkio/shlink-config": "^1.0",
|
||||||
"shlinkio/shlink-event-dispatcher": "^2.0",
|
"shlinkio/shlink-event-dispatcher": "^2.0",
|
||||||
"shlinkio/shlink-importer": "^2.2",
|
"shlinkio/shlink-importer": "^2.2",
|
||||||
|
@ -5,22 +5,18 @@ declare(strict_types=1);
|
|||||||
namespace Shlinkio\Shlink;
|
namespace Shlinkio\Shlink;
|
||||||
|
|
||||||
use Laminas\Stratigility\Middleware\ErrorHandler;
|
use Laminas\Stratigility\Middleware\ErrorHandler;
|
||||||
use Mezzio\Helper;
|
|
||||||
use Mezzio\ProblemDetails;
|
use Mezzio\ProblemDetails;
|
||||||
use Mezzio\Router;
|
use Mezzio\Router;
|
||||||
use PhpMiddleware\RequestId\RequestIdMiddleware;
|
use PhpMiddleware\RequestId\RequestIdMiddleware;
|
||||||
use RKA\Middleware\IpAddress;
|
use RKA\Middleware\IpAddress;
|
||||||
|
use Shlinkio\Shlink\Common\Middleware\ContentLengthMiddleware;
|
||||||
use function extension_loaded;
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'middleware_pipeline' => [
|
'middleware_pipeline' => [
|
||||||
'error-handler' => [
|
'error-handler' => [
|
||||||
'middleware' => [
|
'middleware' => [
|
||||||
// For some reason, with swoole 4.6.3, piping this middleware makes requests to have incomplete body or
|
ContentLengthMiddleware::class,
|
||||||
// never finish loading. Disabling it for swoole fixes it as it already calculates the header on itself
|
|
||||||
...extension_loaded('swoole') ? [] : [Helper\ContentLengthMiddleware::class],
|
|
||||||
ErrorHandler::class,
|
ErrorHandler::class,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user