Skip to content

Commit fc1c765

Browse files
committed
CS fixes per phpcs
Added namespace to configuration file to allow usage of `::class` notation.
1 parent 568634e commit fc1c765

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

config/module.config.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
* @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com)
55
*/
66

7+
namespace ZF\ApiProblem;
8+
79
return [
810
'service_manager' => [
911
'aliases' => [
10-
'ZF\ApiProblem\ApiProblemListener' => 'ZF\ApiProblem\Listener\ApiProblemListener',
11-
'ZF\ApiProblem\RenderErrorListener' => 'ZF\ApiProblem\Listener\RenderErrorListener',
12-
'ZF\ApiProblem\ApiProblemRenderer' => 'ZF\ApiProblem\View\ApiProblemRenderer',
13-
'ZF\ApiProblem\ApiProblemStrategy' => 'ZF\ApiProblem\View\ApiProblemStrategy',
12+
ApiProblemListener::class => Listener\ApiProblemListener::class,
13+
RenderErrorListener::class => Listener\RenderErrorListener::class,
14+
ApiProblemRenderer::class => View\ApiProblemRenderer::class,
15+
ApiProblemStrategy::class => View\ApiProblemStrategy::class,
1416
],
1517
'factories' => [
16-
'ZF\ApiProblem\Listener\ApiProblemListener' => 'ZF\ApiProblem\Factory\ApiProblemListenerFactory',
17-
'ZF\ApiProblem\Listener\RenderErrorListener' => 'ZF\ApiProblem\Factory\RenderErrorListenerFactory',
18-
'ZF\ApiProblem\Listener\SendApiProblemResponseListener' => 'ZF\ApiProblem\Factory\SendApiProblemResponseListenerFactory',
19-
'ZF\ApiProblem\View\ApiProblemRenderer' => 'ZF\ApiProblem\Factory\ApiProblemRendererFactory',
20-
'ZF\ApiProblem\View\ApiProblemStrategy' => 'ZF\ApiProblem\Factory\ApiProblemStrategyFactory',
18+
Listener\ApiProblemListener::class => Factory\ApiProblemListenerFactory::class,
19+
Listener\RenderErrorListener::class => Factory\RenderErrorListenerFactory::class,
20+
Listener\SendApiProblemResponseListener::class => Factory\SendApiProblemResponseListenerFactory::class,
21+
View\ApiProblemRenderer::class => Factory\ApiProblemRendererFactory::class,
22+
View\ApiProblemStrategy::class => Factory\ApiProblemStrategyFactory::class,
2123
],
2224
],
2325

0 commit comments

Comments
 (0)