PHP Class Elcodi\Plugin\CustomShippingBundle\DependencyInjection\ElcodiCustomShippingExtension

Inheritance: extends Elcodi\Bundle\CoreBundle\DependencyInjection\Abstracts\AbstractExtension, implements Elcodi\Bundle\CoreBundle\DependencyInjection\Interfaces\EntitiesOverridableExtensionInterface
显示文件 Open project: elcodi/bamboo

Public Methods

Method Description
getAlias ( ) : string Returns the extension alias, same value as extension name
getConfigFiles ( array $config ) : array Config files to load
getConfigFilesLocation ( ) : string Get the Config file location
getEntitiesOverrides ( ) : array Get entities overrides.

Protected Methods

Method Description
getConfigurationInstance ( ) : Symfony\Component\Config\Definition\ConfigurationInterface Return a new Configuration instance.
getParametrizationValues ( array $config ) : array Load Parametrization definition

Method Details

getAlias() public method

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

getConfigFiles() public method

return array( 'file1.yml', 'file2.yml', ... );
public getConfigFiles ( array $config ) : array
$config array Config
return array Config files

getConfigFilesLocation() public method

Get the Config file location
public getConfigFilesLocation ( ) : string
return string Config file location

getConfigurationInstance() protected method

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
return Symfony\Component\Config\Definition\ConfigurationInterface Configuration file

getEntitiesOverrides() public method

Result must be an array with: index: Original Interface value: Parameter where class is defined.
public getEntitiesOverrides ( ) : array
return array Overrides definition

getParametrizationValues() protected method

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