Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • PHP
  • Yiinitializr
    • Cli
    • Clio
    • Composer
    • Helpers

Classes

  • ArrayX
  • Config
  • Initializer

Class Initializer

Initializer provides a set of useful functions to initialize a Yii Application development.

Namespace: Yiinitializr\Helpers
Package: Yiinitializr\helpers
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Since: 1.0
Located at Helpers/Initializer.php

Methods summary

public static mixed
# create( mixed $root, string $configName = 'main', mixed $mergeWith = array('common', 'env') )

Parameters

$root
mixed
$root
$configName
string
$configName
$mergeWith
mixed
$mergeWith

Returns

mixed

Throws

Exception
public static array
# config( string $configName = 'main', null|string $mergeWith = null )

Parameters

$configName
string
$configName config name to load (main, test, etc)
$mergeWith
null|string
$mergeWith

Returns

array

Throws

Exception
public static array
# build( mixed $directory, mixed $files )

Parameters

$directory
mixed
$directory
$files
mixed
$files array of configuration files to merge

Returns

array
protected static
# setOptions( array $params )

Set php and yii options - some based on the loaded config params

Set php and yii options - some based on the loaded config params

Parameters

$params
array
$params The config params being used for the app
public static
# buildEnvironmentFiles( mixed $environment = 'dev' )

Helper function to build environment files

Helper function to build environment files

Parameters

$environment
mixed
$environment

Throws

Exception
public static
# createRuntimeFolders( string $name = 'runtime' )

Parameters

$name
string
$name the name of the runtime folder,

Throws

Exception
protected static
# output( mixed $message )

Outputs text only to console

Outputs text only to console

Parameters

$message
mixed
$message

Magic methods summary

API documentation generated by ApiGen 2.8.0