Components_Component_Identify::setComponentInConfiguration PHP Метод

setComponentInConfiguration() публичный Метод

Inject the component selected based on the command arguments into the configuration.
public setComponentInConfiguration ( ) : NULL.
Результат NULL.
    public function setComponentInConfiguration()
    {
        $arguments = $this->_config->getArguments();
        if (list($component, $path) = $this->_determineComponent($arguments)) {
            $this->_config->setComponent($component);
            $this->_config->setPath($path);
        }
    }

Usage Example

Пример #1
0
 /**
  * Identify the selected component based on the command arguments.
  *
  * @param Components_Config $config  The active configuration.
  * @param array             $actions The list of available actions.
  *
  * @return NULL
  */
 private static function _identifyComponent(Components_Config $config, $actions, Components_Dependencies $dependencies)
 {
     $identify = new Components_Component_Identify($config, $actions, $dependencies);
     $identify->setComponentInConfiguration();
 }
All Usage Examples Of Components_Component_Identify::setComponentInConfiguration