PHP Class Newscoop\NewscoopBundle\DependencyInjection\NewscoopNewscoopExtension

To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
Inheritance: extends Symfony\Component\HttpKernel\DependencyInjection\Extension, implements Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface
Exibir arquivo Open project: sourcefabric/newscoop

Public Methods

Method Description
load ( array $configs, ContainerBuilder $container ) {@inheritDoc}
mergeParameters ( $container ) Merge parameters for env's.
prepend ( ContainerBuilder $container )
truepath ( $path ) : string This function is to replace PHP's extremely buggy realpath().

Private Methods

Method Description
array_merge_recursive_distinct ( array &$array1, mixed &$array2 = null ) : array array_merge_recursive does indeed merge arrays, but it converts values with duplicate keys to arrays rather than overwriting the value in the first array with the duplicate value in the second array, as array_merge does. I.e., with array_merge_recursive, this happens (documented behavior):

Method Details

load() public method

{@inheritDoc}
public load ( array $configs, ContainerBuilder $container )
$configs array
$container Symfony\Component\DependencyInjection\ContainerBuilder

mergeParameters() public method

Merge parameters for env's.
public mergeParameters ( $container )

prepend() public method

public prepend ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder

truepath() public method

This function is to replace PHP's extremely buggy realpath().
public truepath ( $path ) : string
return string The resolved path, it might not exist.