Library/AliasManager.php
public function add(array $useStatement)
    {
        foreach ($useStatement['aliases'] as $alias) {
            if (isset($alias['alias'])) {
                $this->aliases[$alias['alias']] = $alias['name'];
            } else {
                $parts = explode('\\', $alias['name']);
                $implicitAlias = $parts[\count($parts) - 1];
                $this->aliases[$implicitAlias] = $alias['name'];
            }
        }
    }
public function add(array $useStatement)
    {
        foreach ($useStatement['aliases'] as $alias) {
            if (isset($alias['alias'])) {
                $this->aliases[$alias['alias']] = $alias['name'];
            } else {
                $parts = explode('\\', $alias['name']);
                $implicitAlias = $parts[\count($parts) - 1];
                $this->aliases[$implicitAlias] = $alias['name'];
            }
        }
    }
public function add ( array $ useStatement ) { foreach ( $ useStatement [ 'aliases' ] as $ alias ) { if ( isset ( $ alias [ 'alias' ] ) ) { $ this -> aliases [ $ alias [ 'alias' ] ] = $ alias [ 'name' ] ; } else { $ parts = explode ( '\\' , $ alias [ 'name' ] ) ; $ implicitAlias = $ parts [ \ count ( $ parts ) - 1 ] ; $ this -> aliases [ $ implicitAlias ] = $ alias [ 'name' ] ; } } }
Adds a renaming in a "use" to the alias manager.

@param array $useStatement
Adds a renaming in a use to the alias manager .