title: Laminas Config Module Routing
body: <p>I have started the latest tutorial for Laminas.</p>
  
  <p>The routing for a new module called Provider is not working</p>
  
  <p>A 404 error occurred
  Page not found.
  The requested URL could not be matched by routing.</p>
  
  <ul>
  <li>on looking at my Module.php code I see:</li>
  </ul>
  
  <p>getConfig() is not called but</p>
  
  <p>getServiceConfig() and getControllerConfig() are.</p>
  
  <p>getConfig in the Application module is not called either</p>
  
  <pre><code>&lt;?php
  
  namespace Provider;
  
  use Laminas\Db\Adapter\AdapterInterface;
  use Laminas\Db\ResultSet\ResultSet;
  use Laminas\Db\TableGateway\TableGateway;
  
  use Laminas\ModuleManager\Feature\AutoloaderProviderInterface;
  use Laminas\ModuleManager\Feature\ConfigProviderInterface;
  
  
  class Module implements ConfigProviderInterface, AutoloaderProviderInterface
  {
  
      public function getConfig()
      {       
  
          die ("getConfig");
  
          return include __DIR__ . '/../config/module.config.php';
      }
  
      public function getAutoloaderConfig()
      {   
  
          //die ("getAutoloaderConfig");
  
  
          //return array(
          //      'Laminas\Loader\StandardAutoloader' =&gt; array(
          //              'namespaces' =&gt; array(
          //                      __NAMESPACE__ =&gt; __DIR__ . '/src/' . __NAMESPACE__,
          //              ),
          //      ),
          //);
      }
  
  
      public function getServiceConfig()
      {   
  
          //die ("getServiceConfig");
  
  
          return [
                  'factories' =&gt; [
                          Model\ProviderTable::class =&gt; function($container) {
                          $tableGateway = $container-&gt;get(Provider\ProviderTableGateway::class);
                          return new Model\ProviderTable($tableGateway);
                      },
                      Model\ProviderTableGateway::class =&gt; function ($container) {
                          $dbAdapter = $container-&gt;get(AdapterInterface::class);
                          $resultSetPrototype = new ResultSet();
                          $resultSetPrototype-&gt;setArrayObjectPrototype(new Model\Album());
                          return new TableGateway('provider', $dbAdapter, null, $resultSetPrototype);
                      },
                      ],
                      ];
  }
  
  
      public function getControllerConfig()
      {
  
          //die ("getControllerConfig");
  
  
          return [
              'factories' =&gt; [
                      Controller\ProviderController::class =&gt; function($container) {
                          return new Controller\ProviderController(
                                  $container-&gt;get(Model\ProviderTable::class)
                                  );
                      },
                      ],
                      ];
      }
  
  
  
  
  
  }
  </code></pre>