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
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

mergeParameters() public méthode

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

prepend() public méthode

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

truepath() public méthode

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