Set the selected component.
public setComponent ( Components_Component $component ) : null | ||
$component | Components_Component | The selected component. |
Résultat | null |
/** * 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); } }