More verybose name for module manager options in config and updated URL helper with...
authorEvan Coury <me@evancoury.com>
Sun, 2 Oct 2011 14:07:01 +0000 (07:07 -0700)
committerEvan Coury <me@evancoury.com>
Sun, 2 Oct 2011 14:07:01 +0000 (07:07 -0700)
configs/application.config.php
modules/Application/src/Application/View/Helper/Url.php
public/index.php

index b093106..90da2e6 100644 (file)
@@ -6,7 +6,7 @@ return new Zend\Config\Config(array(
     'modules' => array(
         'Application',
     ),
-    'module_config' => array( 
+    'module_manager_options' => array( 
         'cache_config'  => false,
         'cache_dir'     => realpath(__DIR__ . '/../data/cache'),
     ),
index ccea1fe..3785c47 100644 (file)
@@ -13,7 +13,7 @@ class Url extends AbstractHelper
         $this->router = $router;
     }
 
-    public function direct($params = array(), $options = array())
+    public function __invoke($params = array(), $options = array())
     {
         if (null === $this->router) {
             return '';
index f4bf164..f56f4a6 100644 (file)
@@ -19,7 +19,7 @@ $moduleLoader->register();
 
 $moduleManager = new Zend\Module\Manager(
     $appConfig->modules,
-    new Zend\Module\ManagerOptions($appConfig->module_config)
+    new Zend\Module\ManagerOptions($appConfig->module_manager_options)
 );
 
 // Get the merged config object