PHP Class Kdyby\Translation\DI\TranslationExtension

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\DI\CompilerExtension
Show file Open project: kdyby/translation Class Usage Examples

Public Properties

Property Type Description
$defaults array

Public Methods

Method Description
__construct ( )
afterCompile ( ClassType $class )
beforeCompile ( )
filterArgs ( string | stdClass $statement ) : Statement[]
getConfig ( array $defaults = NULL, $expand = TRUE )
loadConfiguration ( )
register ( Configurator $configurator )

Protected Methods

Method Description
beforeCompileLogging ( array $config )
loadConsole ( array $config )
loadDumpers ( )
loadExtractors ( )
loadLoaders ( array $loaders, array $allowed )
loadLocaleResolver ( array $config )
loadResourcesFromDirs ( $dirs )
validateResource ( string $format, string $file, string $locale, string $domain )

Private Methods

Method Description
isOfType ( string $class, string $type ) : boolean
isRegisteredConsoleExtension ( )

Method Details

__construct() public method

public __construct ( )

afterCompile() public method

public afterCompile ( ClassType $class )
$class Nette\PhpGenerator\ClassType

beforeCompile() public method

public beforeCompile ( )

beforeCompileLogging() protected method

protected beforeCompileLogging ( array $config )
$config array

filterArgs() public static method

public static filterArgs ( string | stdClass $statement ) : Statement[]
$statement string | stdClass
return Nette\DI\Statement[]

getConfig() public method

public getConfig ( array $defaults = NULL, $expand = TRUE )
$defaults array

loadConfiguration() public method

public loadConfiguration ( )

loadConsole() protected method

protected loadConsole ( array $config )
$config array

loadDumpers() protected method

protected loadDumpers ( )

loadExtractors() protected method

protected loadExtractors ( )

loadLoaders() protected method

protected loadLoaders ( array $loaders, array $allowed )
$loaders array
$allowed array

loadLocaleResolver() protected method

protected loadLocaleResolver ( array $config )
$config array

loadResourcesFromDirs() protected method

protected loadResourcesFromDirs ( $dirs )

register() public static method

public static register ( Configurator $configurator )
$configurator Nette\Configurator

validateResource() protected method

protected validateResource ( string $format, string $file, string $locale, string $domain )
$format string
$file string
$locale string
$domain string

Property Details

$defaults public property

public array $defaults
return array