We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91af3dc commit 210c771Copy full SHA for 210c771
src/ZF/ApiProblem/Factory/ApiProblemListenerFactory.php
@@ -18,12 +18,14 @@ class ApiProblemListenerFactory implements FactoryInterface
18
*/
19
public function createService(ServiceLocatorInterface $serviceLocator)
20
{
21
- $config = $serviceLocator->get('Config');
22
$filters = null;
+ $config = [];
23
24
- if (isset($config['zf-api-problem'])
25
- && isset($config['zf-api-problem']['accept_filters'])
26
- ) {
+ if ($serviceLocator->has('Config')) {
+ $config = $serviceLocator->get('Config');
+ }
27
+
28
+ if (isset($config['zf-api-problem']['accept_filters'])) {
29
$filters = $config['zf-api-problem']['accept_filters'];
30
}
31
0 commit comments