PHP Class N98\Magento\Command\Installer\InstallCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Afficher le fichier Open project: netz98/n98-magerun

Protected Properties

Свойство Type Description
$_argv array
$commandConfig array
$config array
$notEmptyCallback Closure

Méthodes publiques

Méthode Description
downloadMagento ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
getCliArguments ( ) : array
isEnabled ( ) : boolean
setCliArguments ( array $args )

Méthodes protégées

Méthode Description
_fixComposerExtractionBug ( )
configure ( )
createDatabase ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
getInstallScriptPath ( ) : string Check if we have a magento 2 or 1 installation and return path to install.php
getTargetFolderByType ( Composer\Composer $composer, Composer\Package\CompletePackage $package, $installationFolder ) : string construct a folder to where magerun will download the source to, cache git/hg repositories under COMPOSER_HOME
installMagento ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array
installSampleData ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
patchMagentoInstallerForPHP54 ( string $magentoFolder )
precheckPhp ( ) Check PHP environment agains minimal required settings modules
removeEmptyFolders ( ) Remove empty composer extraction folder
replaceHtaccessFile ( string $baseUrl )
selectMagentoVersion ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
setDirectoryPermissions ( Symfony\Component\Console\Output\OutputInterface $output )
validateDatabaseSettings ( Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Input\InputInterface $input ) : boolean | PD\PDO

Private Methods

Méthode Description
getPackageNumberByName ( $name ) : integer
runInstallScriptCommand ( Symfony\Component\Console\Output\OutputInterface $output, string $installationFolder, array $argv ) : void Invoke Magento PHP install script shell/install.php

Method Details

_fixComposerExtractionBug() protected méthode

configure() protected méthode

protected configure ( )

createDatabase() protected méthode

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

downloadMagento() public méthode

public downloadMagento ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat boolean

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat integer | null | void

getCliArguments() public méthode

public getCliArguments ( ) : array
Résultat array

getInstallScriptPath() protected méthode

Check if we have a magento 2 or 1 installation and return path to install.php
protected getInstallScriptPath ( ) : string
Résultat string

getTargetFolderByType() protected méthode

construct a folder to where magerun will download the source to, cache git/hg repositories under COMPOSER_HOME
protected getTargetFolderByType ( Composer\Composer $composer, Composer\Package\CompletePackage $package, $installationFolder ) : string
$composer Composer\Composer
$package Composer\Package\CompletePackage
$installationFolder
Résultat string

installMagento() protected méthode

protected installMagento ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat array

installSampleData() protected méthode

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

isEnabled() public méthode

public isEnabled ( ) : boolean
Résultat boolean

patchMagentoInstallerForPHP54() protected méthode

protected patchMagentoInstallerForPHP54 ( string $magentoFolder )
$magentoFolder string

precheckPhp() protected méthode

Check PHP environment agains minimal required settings modules
protected precheckPhp ( )

removeEmptyFolders() protected méthode

Remove empty composer extraction folder
protected removeEmptyFolders ( )

replaceHtaccessFile() protected méthode

protected replaceHtaccessFile ( string $baseUrl )
$baseUrl string

selectMagentoVersion() protected méthode

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

setCliArguments() public méthode

public setCliArguments ( array $args )
$args array

setDirectoryPermissions() protected méthode

protected setDirectoryPermissions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

validateDatabaseSettings() protected méthode

protected validateDatabaseSettings ( Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Input\InputInterface $input ) : boolean | PD\PDO
$output Symfony\Component\Console\Output\OutputInterface
$input Symfony\Component\Console\Input\InputInterface
Résultat boolean | PD\PDO

Property Details

$_argv protected_oe property

protected array $_argv
Résultat array

$commandConfig protected_oe property

protected array $commandConfig
Résultat array

$config protected_oe property

protected array $config
Résultat array

$notEmptyCallback protected_oe property

protected Closure $notEmptyCallback
Résultat Closure