PHP Class Yiinitializr\Helpers\Initializer

Since: 1.0
Author: Antonio Ramirez ([email protected])
Afficher le fichier Open project: 2amigos/yiinitializr Class Usage Examples

Méthodes publiques

Méthode Description
build ( $directory, $files ) : array
buildEnvironmentFiles ( $environment = 'dev' ) Helper function to build environment files
config ( string $configName = 'main', null | string $mergeWith = null ) : array
create ( $root, string $configName = 'main', mixed $mergeWith = ['common', 'env'] ) : mixed
createRuntimeFolders ( string $name = 'runtime' )

Méthodes protégées

Méthode Description
output ( $message ) Outputs text only to console
setOptions ( array $params ) Set php and yii options - some based on the loaded config params

Method Details

build() public static méthode

public static build ( $directory, $files ) : array
$directory
$files array of configuration files to merge
Résultat array

buildEnvironmentFiles() public static méthode

Helper function to build environment files
public static buildEnvironmentFiles ( $environment = 'dev' )
$environment

config() public static méthode

public static config ( string $configName = 'main', null | string $mergeWith = null ) : array
$configName string config name to load (main, test, etc)
$mergeWith null | string
Résultat array

create() public static méthode

public static create ( $root, string $configName = 'main', mixed $mergeWith = ['common', 'env'] ) : mixed
$root
$configName string
$mergeWith mixed
Résultat mixed

createRuntimeFolders() public static méthode

public static createRuntimeFolders ( string $name = 'runtime' )
$name string the name of the runtime folder,

output() protected static méthode

Outputs text only to console
protected static output ( $message )
$message

setOptions() protected static méthode

Set php and yii options - some based on the loaded config params
protected static setOptions ( array $params )
$params array The config params being used for the app