PHP Class ForkCMS\Bundle\InstallerBundle\Service\ForkInstaller

Author: Davy Hellemans ([email protected])
Author: Tijs Verkoyen ([email protected])
Author: Matthias Mullie ([email protected])
Author: Dieter Vanden Eynde ([email protected])
Author: Annelies Van Extergem ([email protected])
Author: Wouter Sioen ([email protected])
Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\DependencyInjection\Container $container, $rootDir )
getHiddenModules ( ) : string[] Fetches the hidden modules
getRequiredModules ( ) : string[] Fetches the required modules
install ( InstallationData $data ) : boolean Installs Fork

Méthodes protégées

Méthode Description
buildDatabase ( InstallationData $data )
createLocaleFiles ( InstallationData $data ) Create locale cache files
createYAMLConfig ( InstallationData $data ) Writes a config file to app/config/parameters.yml.
getConfigurationVariables ( InstallationData $data ) : array
getCoreInstaller ( InstallationData $data ) : CoreInstaller
getInstallerData ( InstallationData $data ) : array
installCore ( InstallationData $data )
installExtras ( )
installModules ( InstallationData $data )

Private Methods

Méthode Description
deleteCachedData ( ) Delete the cached data

Method Details

__construct() public méthode

public __construct ( Symfony\Component\DependencyInjection\Container $container, $rootDir )
$container Symfony\Component\DependencyInjection\Container
$rootDir

buildDatabase() protected méthode

protected buildDatabase ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData

createLocaleFiles() protected méthode

Create locale cache files
protected createLocaleFiles ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData

createYAMLConfig() protected méthode

Writes a config file to app/config/parameters.yml.
protected createYAMLConfig ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData

getConfigurationVariables() protected méthode

protected getConfigurationVariables ( InstallationData $data ) : array
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData
Résultat array A list of variables that should be parsed into the configuration file(s).

getCoreInstaller() protected méthode

protected getCoreInstaller ( InstallationData $data ) : CoreInstaller
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData
Résultat Backend\Core\Installer\CoreInstaller

getHiddenModules() public static méthode

Fetches the hidden modules
public static getHiddenModules ( ) : string[]
Résultat string[]

getInstallerData() protected méthode

protected getInstallerData ( InstallationData $data ) : array
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData
Résultat array A list of variables that will be used in installers.

getRequiredModules() public static méthode

Fetches the required modules
public static getRequiredModules ( ) : string[]
Résultat string[]

install() public méthode

Installs Fork
public install ( InstallationData $data ) : boolean
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData The collected data required for Fork
Résultat boolean Is Fork successfully installed?

installCore() protected méthode

protected installCore ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData

installExtras() protected méthode

protected installExtras ( )

installModules() protected méthode

protected installModules ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData