Back to Joomla project (class list)

Class ExtensionDiscoverInstallCommand - list of methods

Console command for discovering extensions
Package: Joomla\CMS\Console
Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Console/ExtensionDiscoverInstallCommand.php
Project: Joomla

Method Summary

public
(\Joomla\Database\DatabaseInterface $db)

Instantiate the command.
Parameters
  • \Joomla\Database\DatabaseInterface $db Database connector
Since
  • 4.0.0
Show source code of this method: __construct Source Code

private void
(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)

Configures the IO
Parameters
  • \Symfony\Component\Console\Input\InputInterface $input Console Input
  • \Symfony\Component\Console\Output\OutputInterface $output Console Output
Returns
  • void
Since
  • 4.0.0
Show source code of this method: configureIO Source Code

protected void
()

Initialise the command.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: configure Source Code

public int
(mixed $eid)

Used for discovering extensions
Parameters
  • string $eid Id of the extension
Returns
  • int The count of installed extensions
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: processDiscover Source Code

public string
(int $count, int $eid)

Used for finding the text for the note
Parameters
  • int $count Number of extensions to install
  • int $eid ID of the extension or -1 if no special
Returns
  • string The text for the note
Since
  • 4.0.0
Show source code of this method: getNote Source Code

protected int
(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)

Internal function to execute the command.
Parameters
  • \Symfony\Component\Console\Input\InputInterface $input The input to inject into the command.
  • \Symfony\Component\Console\Output\OutputInterface $output The output to inject into the command.
Returns
  • int The command exit code
Since
  • 4.0.0
Show source code of this method: doExecute Source Code

Properties Summary

protected static string
$defaultName
The default command name
Since
  • 4.0.0
private \Symfony\Component\Console\Input\InputInterface
$cliInput
Stores the Input Object
Since
  • 4.0.0
private \Symfony\Component\Console\Style\SymfonyStyle
$ioStyle
SymfonyStyle Object
Since
  • 4.0.0
private \Joomla\Database\DatabaseInterface
$db
Database connector
Since
  • 4.0.0

Tags Summary

Since
4.0.0