[zen-24] Removed the default route
authorMatthew Weier O'Phinney <matthew@zend.com>
Mon, 2 Jul 2012 11:35:25 +0000 (06:35 -0500)
committerMatthew Weier O'Phinney <matthew@zend.com>
Mon, 2 Jul 2012 11:35:25 +0000 (06:35 -0500)
- Removed the default route, as it is not recommended.
- See https://github.com/zendframework/ZendSkeletonModule/pull/3 for how
  a module-specific default route can be created.

module/Application/config/module.config.php

index a52739c..ba2836a 100644 (file)
@@ -2,20 +2,6 @@
 return array(
     'router' => array(
         'routes' => array(
-            'default' => array(
-                'type'    => 'Zend\Mvc\Router\Http\Segment',
-                'options' => array(
-                    'route'    => '/[:controller[/:action]]',
-                    'constraints' => array(
-                        'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
-                        'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
-                    ),
-                    'defaults' => array(
-                        'controller' => 'index',
-                        'action'     => 'index',
-                    ),
-                ),
-            ),
             'home' => array(
                 'type' => 'Zend\Mvc\Router\Http\Literal',
                 'options' => array(