getProvider() public method

Return the module provider.
public getProvider ( ) : Horde_Cli_Modular_ModuleProvider
return Horde_Cli_Modular_ModuleProvider The module provider.
Esempio n. 1
0
 /**
  * Provide a list of available action arguments.
  *
  * @param Components_Config $config The active configuration.
  *
  * @return NULL
  */
 private static function _getActionArguments(Horde_Cli_Modular $modular)
 {
     $actions = array();
     foreach ($modular->getModules() as $module) {
         $actions = array_merge($actions, $modular->getProvider()->getModule($module)->getActions());
     }
     return array('list' => $actions, 'missing_argument' => array('help'));
 }
Esempio n. 2
0
 public function testArrayProviders()
 {
     $modular = new Horde_Cli_Modular(array('provider' => array('prefix' => 'Test')));
     $this->assertInstanceOf('Horde_Cli_Modular_ModuleProvider', $modular->getProvider());
 }