setComponent() public method

Set the selected component.
public setComponent ( Components_Component $component ) : null
$component Components_Component The selected component.
return null
示例#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);
     }
 }