PHP Класс N98\Magento\Command\Installer\InstallCommand

Наследование: extends N98\Magento\Command\AbstractMagentoCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_argv array
$commandConfig array
$config array
$notEmptyCallback Closure

Открытые методы

Метод Описание
downloadMagento ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
getCliArguments ( ) : array
isEnabled ( ) : boolean
setCliArguments ( array $args )

Защищенные методы

Метод Описание
_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

Приватные методы

Метод Описание
getPackageNumberByName ( $name ) : integer
runInstallScriptCommand ( Symfony\Component\Console\Output\OutputInterface $output, string $installationFolder, array $argv ) : void Invoke Magento PHP install script shell/install.php

Описание методов

_fixComposerExtractionBug() защищенный Метод

configure() защищенный Метод

protected configure ( )

createDatabase() защищенный Метод

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 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
Результат boolean

execute() защищенный Метод

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
Результат integer | null | void

getCliArguments() публичный Метод

public getCliArguments ( ) : array
Результат array

getInstallScriptPath() защищенный Метод

Check if we have a magento 2 or 1 installation and return path to install.php
protected getInstallScriptPath ( ) : string
Результат string

getTargetFolderByType() защищенный Метод

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
Результат string

installMagento() защищенный Метод

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
Результат array

installSampleData() защищенный Метод

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 isEnabled ( ) : boolean
Результат boolean

patchMagentoInstallerForPHP54() защищенный Метод

protected patchMagentoInstallerForPHP54 ( string $magentoFolder )
$magentoFolder string

precheckPhp() защищенный Метод

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

removeEmptyFolders() защищенный Метод

Remove empty composer extraction folder
protected removeEmptyFolders ( )

replaceHtaccessFile() защищенный Метод

protected replaceHtaccessFile ( string $baseUrl )
$baseUrl string

selectMagentoVersion() защищенный Метод

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 setCliArguments ( array $args )
$args array

setDirectoryPermissions() защищенный Метод

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

validateDatabaseSettings() защищенный Метод

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
Результат boolean | PD\PDO

Описание свойств

$_argv защищенное свойство

protected array $_argv
Результат array

$commandConfig защищенное свойство

protected array $commandConfig
Результат array

$config защищенное свойство

protected array $config
Результат array

$notEmptyCallback защищенное свойство

protected Closure $notEmptyCallback
Результат Closure