Browse Source

ZF-9100
- Ensuring module creation of a 'default' module adds the proper application.ini keys

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20991 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 years ago
parent
commit
56c97b37b9
1 changed files with 7 additions and 0 deletions
  1. 7 0
      library/Zend/Tool/Project/Provider/Module.php

+ 7 - 0
library/Zend/Tool/Project/Provider/Module.php

@@ -154,6 +154,13 @@ class Zend_Tool_Project_Provider_Module
                 $response->appendContent($resource->getContext()->getPath());
                 $response->appendContent($resource->getContext()->getPath());
                 $resource->create();
                 $resource->create();
             }
             }
+            
+            if (strtolower($name) == 'default') {
+                $response->appendContent('Added a key for the default module to the application.ini file');
+                $appConfigFile = $this->_loadedProfile->search('ApplicationConfigFile');
+                $appConfigFile->addStringItem('resources.frontcontroller.params.prefixDefaultModule', '1', 'production');
+                $appConfigFile->create();
+            }
 
 
             // store changes to the profile
             // store changes to the profile
             $this->_storeProfile();
             $this->_storeProfile();