Back to ExtensionDiscoverCommand class

Method processDiscover

public int
processDiscover
()
Used for discovering extensions
Returns
  • int The count of discovered extensions
Since
  • 4.0.0
-
  • \Exception

Method processDiscover - Source code

/**
 * Used for discovering extensions
 *
 * @return  integer  The count of discovered extensions
 *
 * @throws  \Exception
 *
 * @since   4.0.0
 */
public function processDiscover() : int
{
    $app = $this->getApplication();
    $mvcFactory = $app->bootComponent('com_installer')->getMVCFactory();
    $model = $mvcFactory->createModel('Discover', 'Administrator');
    return $model->discover();
}