|
14 | 14 | use Laminas\Mvc\RouteListener;
|
15 | 15 | use Laminas\Mvc\SendResponseListener;
|
16 | 16 | use Laminas\Mvc\Service\ApplicationFactory;
|
| 17 | +use Laminas\Mvc\Service\ApplicationListenerProviderFactory; |
17 | 18 | use Laminas\Mvc\Service\ControllerManagerFactory;
|
18 | 19 | use Laminas\Mvc\Service\ControllerPluginManagerFactory;
|
19 | 20 | use Laminas\Mvc\Service\DispatchListenerFactory;
|
@@ -59,7 +60,10 @@ class ConfigProvider
|
59 | 60 | public function __invoke(): array
|
60 | 61 | {
|
61 | 62 | return [
|
62 |
| - 'dependencies' => $this->getDependencies(), |
| 63 | + 'dependencies' => $this->getDependencies(), |
| 64 | + Application::class => [ |
| 65 | + 'listeners' => [], |
| 66 | + ], |
63 | 67 | ];
|
64 | 68 | }
|
65 | 69 |
|
@@ -97,36 +101,37 @@ public function getDependencies(): array
|
97 | 101 | ControllerManager::class => 'ControllerManager',
|
98 | 102 | ],
|
99 | 103 | 'factories' => [
|
100 |
| - 'EventManager' => EventManagerFactory::class, |
101 |
| - 'SharedEventManager' => static fn() => new SharedEventManager(), |
102 |
| - 'Application' => ApplicationFactory::class, |
103 |
| - 'ControllerManager' => ControllerManagerFactory::class, |
104 |
| - 'ControllerPluginManager' => ControllerPluginManagerFactory::class, |
105 |
| - 'DispatchListener' => DispatchListenerFactory::class, |
106 |
| - 'HttpExceptionStrategy' => HttpExceptionStrategyFactory::class, |
107 |
| - 'HttpMethodListener' => HttpMethodListenerFactory::class, |
108 |
| - 'HttpRouteNotFoundStrategy' => HttpRouteNotFoundStrategyFactory::class, |
109 |
| - 'HttpViewManager' => HttpViewManagerFactory::class, |
110 |
| - 'InjectTemplateListener' => InjectTemplateListenerFactory::class, |
111 |
| - 'PaginatorPluginManager' => PaginatorPluginManagerFactory::class, |
112 |
| - 'Request' => RequestFactory::class, |
113 |
| - 'Response' => ResponseFactory::class, |
114 |
| - 'ViewHelperManager' => ViewHelperManagerFactory::class, |
115 |
| - DefaultRenderingStrategy::class => HttpDefaultRenderingStrategyFactory::class, |
116 |
| - 'ViewFeedStrategy' => ViewFeedStrategyFactory::class, |
117 |
| - 'ViewJsonStrategy' => ViewJsonStrategyFactory::class, |
118 |
| - 'ViewManager' => ViewManagerFactory::class, |
119 |
| - 'ViewResolver' => ViewResolverFactory::class, |
120 |
| - 'ViewTemplateMapResolver' => ViewTemplateMapResolverFactory::class, |
121 |
| - 'ViewTemplatePathStack' => ViewTemplatePathStackFactory::class, |
122 |
| - 'ViewPrefixPathStackResolver' => ViewPrefixPathStackResolverFactory::class, |
123 |
| - RouteListener::class => InvokableFactory::class, |
124 |
| - SendResponseListener::class => SendResponseListenerFactory::class, |
125 |
| - FeedRenderer::class => InvokableFactory::class, |
126 |
| - JsonRenderer::class => InvokableFactory::class, |
127 |
| - PhpRenderer::class => ViewPhpRendererFactory::class, |
128 |
| - PhpRendererStrategy::class => ViewPhpRendererStrategyFactory::class, |
129 |
| - View::class => ViewFactory::class, |
| 104 | + 'EventManager' => EventManagerFactory::class, |
| 105 | + 'SharedEventManager' => static fn() => new SharedEventManager(), |
| 106 | + 'Application' => ApplicationFactory::class, |
| 107 | + 'ControllerManager' => ControllerManagerFactory::class, |
| 108 | + 'ControllerPluginManager' => ControllerPluginManagerFactory::class, |
| 109 | + 'DispatchListener' => DispatchListenerFactory::class, |
| 110 | + 'HttpExceptionStrategy' => HttpExceptionStrategyFactory::class, |
| 111 | + 'HttpMethodListener' => HttpMethodListenerFactory::class, |
| 112 | + 'HttpRouteNotFoundStrategy' => HttpRouteNotFoundStrategyFactory::class, |
| 113 | + 'HttpViewManager' => HttpViewManagerFactory::class, |
| 114 | + 'InjectTemplateListener' => InjectTemplateListenerFactory::class, |
| 115 | + 'PaginatorPluginManager' => PaginatorPluginManagerFactory::class, |
| 116 | + 'Request' => RequestFactory::class, |
| 117 | + 'Response' => ResponseFactory::class, |
| 118 | + 'ViewHelperManager' => ViewHelperManagerFactory::class, |
| 119 | + DefaultRenderingStrategy::class => HttpDefaultRenderingStrategyFactory::class, |
| 120 | + 'ViewFeedStrategy' => ViewFeedStrategyFactory::class, |
| 121 | + 'ViewJsonStrategy' => ViewJsonStrategyFactory::class, |
| 122 | + 'ViewManager' => ViewManagerFactory::class, |
| 123 | + 'ViewResolver' => ViewResolverFactory::class, |
| 124 | + 'ViewTemplateMapResolver' => ViewTemplateMapResolverFactory::class, |
| 125 | + 'ViewTemplatePathStack' => ViewTemplatePathStackFactory::class, |
| 126 | + 'ViewPrefixPathStackResolver' => ViewPrefixPathStackResolverFactory::class, |
| 127 | + ApplicationListenerProvider::class => ApplicationListenerProviderFactory::class, |
| 128 | + RouteListener::class => InvokableFactory::class, |
| 129 | + SendResponseListener::class => SendResponseListenerFactory::class, |
| 130 | + FeedRenderer::class => InvokableFactory::class, |
| 131 | + JsonRenderer::class => InvokableFactory::class, |
| 132 | + PhpRenderer::class => ViewPhpRendererFactory::class, |
| 133 | + PhpRendererStrategy::class => ViewPhpRendererStrategyFactory::class, |
| 134 | + View::class => ViewFactory::class, |
130 | 135 | ],
|
131 | 136 | 'shared' => [
|
132 | 137 | 'EventManager' => false,
|
|
0 commit comments