PHP 클래스 Elcodi\Common\CommonBundle\DependencyInjection\ElcodiCommonExtension

상속: extends Elcodi\Bundle\CoreBundle\DependencyInjection\Abstracts\AbstractExtension
파일 보기 프로젝트 열기: elcodi/bamboo

공개 메소드들

메소드 설명
getAlias ( ) : string Returns the extension alias, same value as extension name
getConfigFilesLocation ( ) : string Get the Config file location

보호된 메소드들

메소드 설명
getConfigFiles ( array $config ) : array Config files to load
getConfigurationInstance ( ) : Symfony\Component\Config\Definition\ConfigurationInterface Return a new Configuration instance.
getParametrizationValues ( array $config ) : array Load Parametrization definition

메소드 상세

getAlias() 공개 메소드

Returns the extension alias, same value as extension name
public getAlias ( ) : string
리턴 string The alias

getConfigFiles() 보호된 메소드

Each array position can be a simple file name if must be loaded always, or an array, with the filename in the first position, and a boolean in the second one. As a parameter, this method receives all loaded configuration, to allow setting this boolean value from a configuration value. return array( 'file1.yml', 'file2.yml', ['file3.yml', $config['my_boolean'], ... );
protected getConfigFiles ( array $config ) : array
$config array Config definitions
리턴 array Config files

getConfigFilesLocation() 공개 메소드

Get the Config file location
public getConfigFilesLocation ( ) : string
리턴 string Config file location

getConfigurationInstance() 보호된 메소드

If object returned by this method is an instance of ConfigurationInterface, extension will use the Configuration to read all bundle config definitions. Also will call getParametrizationValues method to load some config values to internal parameters.
protected getConfigurationInstance ( ) : Symfony\Component\Config\Definition\ConfigurationInterface
리턴 Symfony\Component\Config\Definition\ConfigurationInterface Configuration file

getParametrizationValues() 보호된 메소드

return array( 'parameter1' => $config['parameter1'], 'parameter2' => $config['parameter2'], ... );
protected getParametrizationValues ( array $config ) : array
$config array Bundles config values
리턴 array Parametrization values