* migrate to mezzio

This commit is contained in:
Danyi Dávid
2020-09-07 20:54:56 +02:00
parent d60f6c5d1b
commit 554b0b5d99
28 changed files with 3218 additions and 1800 deletions

View File

@@ -1,10 +1,10 @@
<?php
use Zend\Expressive\Application;
use Zend\Expressive\Container;
use Zend\Expressive\Delegate;
use Zend\Expressive\Helper;
use Zend\Expressive\Middleware;
use Mezzio\Application;
use Mezzio\Container;
use Mezzio\Delegate;
use Mezzio\Helper;
use Mezzio\Middleware;
return [
// Provides application-wide services.
@@ -14,7 +14,7 @@ return [
// Use 'aliases' to alias a service name to another service. The
// key is the alias name, the value is the service to which it points.
'aliases' => [
'Zend\Expressive\Delegate\DefaultDelegate' => Delegate\NotFoundDelegate::class,
'Mezzio\Delegate\DefaultDelegate' => Delegate\NotFoundDelegate::class,
],
// Use 'invokables' for constructor-less services, or services that do
// not require arguments to the constructor. Map a service name to the
@@ -31,7 +31,7 @@ return [
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
Helper\UrlHelperMiddleware::class => Helper\UrlHelperMiddlewareFactory::class,
Zend\Stratigility\Middleware\ErrorHandler::class => Container\ErrorHandlerFactory::class,
Laminas\Stratigility\Middleware\ErrorHandler::class => Container\ErrorHandlerFactory::class,
Middleware\ErrorResponseGenerator::class => Container\ErrorResponseGeneratorFactory::class,
Middleware\NotFoundHandler::class => Container\NotFoundHandlerFactory::class,