Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
56c97b37b9
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  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());
                 $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
             $this->_storeProfile();