PHP Class N98\Magento\Command\Installer\InstallCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Datei anzeigen Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$_argv array
$commandConfig array
$config array
$notEmptyCallback Closure

Public Methods

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

Protected Methods

Method 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

Method 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 method

configure() protected method

protected configure ( )

createDatabase() protected method

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 method

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
return boolean

execute() protected method

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
return integer | null | void

getCliArguments() public method

public getCliArguments ( ) : array
return array

getInstallScriptPath() protected method

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

getTargetFolderByType() protected method

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
return string

installMagento() protected method

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
return array

installSampleData() protected method

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 method

public isEnabled ( ) : boolean
return boolean

patchMagentoInstallerForPHP54() protected method

protected patchMagentoInstallerForPHP54 ( string $magentoFolder )
$magentoFolder string

precheckPhp() protected method

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

removeEmptyFolders() protected method

Remove empty composer extraction folder
protected removeEmptyFolders ( )

replaceHtaccessFile() protected method

protected replaceHtaccessFile ( string $baseUrl )
$baseUrl string

selectMagentoVersion() protected method

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 method

public setCliArguments ( array $args )
$args array

setDirectoryPermissions() protected method

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

validateDatabaseSettings() protected method

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
return boolean | PD\PDO

Property Details

$_argv protected_oe property

protected array $_argv
return array

$commandConfig protected_oe property

protected array $commandConfig
return array

$config protected_oe property

protected array $config
return array

$notEmptyCallback protected_oe property

protected Closure $notEmptyCallback
return Closure