Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel (wrobel@pardus.de)
Пример #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();
 }
Пример #2
0
 private function _initIdentify($arguments, $options = array(), $dependencies = null)
 {
     if ($dependencies === null) {
         $dependencies = new Components_Dependencies_Injector();
     }
     $this->config = new Components_Stub_Config($arguments, $options);
     $dependencies->initConfig($this->config);
     $identify = new Components_Component_Identify($this->config, array('list' => array('test'), 'missing_argument' => array('help')), $dependencies);
     $identify->setComponentInConfiguration();
 }