Components_Config::setPath PHP Method

setPath() public method

Set the path to the directory of the selected source component.
public setPath ( string $path ) : null
$path string The path to the component directory.
return null
    public function setPath($path);

Usage Example

示例#1
0
 /**
  * Inject the component selected based on the command arguments into the
  * configuration.
  *
  * @return NULL.
  */
 public function setComponentInConfiguration()
 {
     $arguments = $this->_config->getArguments();
     if (list($component, $path) = $this->_determineComponent($arguments)) {
         $this->_config->setComponent($component);
         $this->_config->setPath($path);
     }
 }