Back to Joomla project (class list)

Class ExtensionInstallCommand - list of methods

Console command for installing 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/ExtensionInstallCommand.php
Project: Joomla

Method Summary

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 bool
(mixed $path)

Used for installing extension from a path
Parameters
  • string $path Path to the extension zip file
Returns
  • bool
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: processPathInstallation Source Code

public bool
(mixed $url)

Used for installing extension from a URL
Parameters
  • string $url URL to the extension zip file
Returns
  • bool
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: processUrlInstallation 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
-
  • \Exception
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

Constants Summary

public
$INSTALLATION_FAILED
Exit Code For installation failure
Since
  • -
public
$INSTALLATION_SUCCESSFUL
Exit Code For installation Success
Since
  • -

Tags Summary

Since
4.0.0