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])
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method Description
deleteCachedData ( ) Delete the cached data

Method Details

__construct() public method

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

buildDatabase() protected method

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

createLocaleFiles() protected method

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

createYAMLConfig() protected method

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

getConfigurationVariables() protected method

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

getCoreInstaller() protected method

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

getHiddenModules() public static method

Fetches the hidden modules
public static getHiddenModules ( ) : string[]
return string[]

getInstallerData() protected method

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

getRequiredModules() public static method

Fetches the required modules
public static getRequiredModules ( ) : string[]
return string[]

install() public method

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

installCore() protected method

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

installExtras() protected method

protected installExtras ( )

installModules() protected method

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