src/AssetManager/Resolver/AliasPathStackResolver.php
private function addAlias($alias, $path)
    {
        if (!is_string($path)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Invalid path provided; must be a string, received %s',
                gettype($path)
            ));
        }

        if (!is_string($alias)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Invalid alias provided; must be a string, received %s',
                gettype($alias)
            ));
        }

        $this->aliases[$alias] = $this->normalizePath($path);
    }
private function addAlias($alias, $path)
    {
        if (!is_string($path)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Invalid path provided; must be a string, received %s',
                gettype($path)
            ));
        }

        if (!is_string($alias)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Invalid alias provided; must be a string, received %s',
                gettype($alias)
            ));
        }

        $this->aliases[$alias] = $this->normalizePath($path);
    }
private function addAlias ( $ alias , $ path ) { if ( ! is_string ( $ path ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'Invalid path provided; must be a string, received %s' , gettype ( $ path ) ) ) ; } if ( ! is_string ( $ alias ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'Invalid alias provided; must be a string, received %s' , gettype ( $ alias ) ) ) ; } $ this -> aliases [ $ alias ] = $ this -> normalizePath ( $ path ) ; }
Add a single alias to the stack

@param  string                             $alias
@param  string                             $path
@throws Exception\InvalidArgumentException
Add a single alias to the stack