瀏覽代碼

ZF-9844 - Added missing enable() and disable() methods to have help menu entiries on manifest and provider actions shown

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22180 44c647ce-9c0f-0410-b52a-842ac1e357ba
beberlei 16 年之前
父節點
當前提交
1c70b78b90
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      library/Zend/Tool/Framework/System/Provider/Config.php

+ 12 - 0
library/Zend/Tool/Framework/System/Provider/Config.php

@@ -180,6 +180,18 @@ class Zend_Tool_Framework_System_Provider_Config extends Zend_Tool_Framework_Pro
         return $tree;
     }
 
+    public function enable()
+    {
+        $resp = $this->_registry->getResponse();
+        $resp->appendContent('Use either "zf enable config.provider" or "zf enable config.manifest".');
+    }
+
+    public function disable()
+    {
+        $resp = $this->_registry->getResponse();
+        $resp->appendContent('Use either "zf disable config.provider" or "zf disable config.manifest".');
+    }
+
     /**
      * @param string $className
      */