ZF-7035: "zf create project-provider" not work.

Description

using trunk.

{quote} "$ zf create project-provider foo bar " {quote}

{quote} Catchable fatal error: Argument 1 passed to Zend_Tool_Project_Provider_ProjectProvider::createResource() must be an instance of Zend_Tool_Project_Profile, boolean given, called in /usr/share/php/Zend/Tool/Project/Provider/ProjectProvider.php on line 84 and defined in /usr/share/php/Zend/Tool/Project/Provider/ProjectProvider.php on line 44 {quote}

Zend_Tool_Project_Provider_ProjectProvider::create use parent's Zend_Tool_Project_Provider_Abstract::_loadProfileRequired() method.

_loadProfileRequired() expects "$this->_loadProfile() "'s return value // mixed(false or Zend_Tool_Project_Profile) but, _loadProfile() return boolean (not Zend_Tool_Project_Profile)

patch:: Zend_Tool_Project_Provider_Abstract::_loadProfile()

 
-        return $profile;
+        return true;
     }

Comments

patch for Zend_Tool_Project_Provider_Abstract->_loadProfile

replace "return true" to "return $profile"