Skip to content
Permalink
2.3.x
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
declare(strict_types=1);
namespace Laminas\Mvc\Middleware;
use Laminas\Mvc\MiddlewareListener as DeprecatedMiddlewareListener;
class Module
{
public function getConfig(): array
{
return [
'service_manager' => [
'aliases' => [
DeprecatedMiddlewareListener::class => MiddlewareListener::class,
// Legacy Zend Framework aliases
\Zend\Mvc\MiddlewareListener::class => DeprecatedMiddlewareListener::class,
\Zend\Mvc\Middleware\MiddlewareListener::class => MiddlewareListener::class,
],
'factories' => [
MiddlewareListener::class => MiddlewareListenerFactory::class,
],
],
];
}
}