Skip to content

Commit

Permalink
only add router module if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
reinfi committed Nov 25, 2017
1 parent 1ee5192 commit 4e2b9e9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/resources/application_config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php

$modules = [
\Reinfi\DependencyInjection\Module::class,
];

if (class_exists('Zend\Router\Module')) {
$modules[] = 'Zend\Router\Module';
}

return [
'modules' => [
\Zend\Router\Module::class,
\Reinfi\DependencyInjection\Module::class,
],
'modules' => $modules,
'module_listener_options' => [
'config_glob_paths' => [
__DIR__ . '/config.php',
Expand Down

0 comments on commit 4e2b9e9

Please sign in to comment.