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
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);
     }
 }