PHP Class Yiinitializr\Helpers\Initializer

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

Public Methods

Method 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' )

Protected Methods

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

public static build ( $directory, $files ) : array
$directory
$files array of configuration files to merge
return array

buildEnvironmentFiles() public static method

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

config() public static method

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

create() public static method

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

createRuntimeFolders() public static method

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

output() protected static method

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

setOptions() protected static method

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