public function match($alias, $class)
    {
        foreach (['*', $alias] as $key) {
            if ($props = $this->getNamespace($key)) {
                if ($this->matchGroup($props, $alias, $class)) {
                    return true;
                }
            }
        }

        return false;
    }
public function match($alias, $class)
    {
        foreach (['*', $alias] as $key) {
            if ($props = $this->getNamespace($key)) {
                if ($this->matchGroup($props, $alias, $class)) {
                    return true;
                }
            }
        }

        return false;
    }
public function match ( $ alias , $ class ) { foreach ( [ '*' , $ alias ] as $ key ) { if ( $ props = $ this -> getNamespace ( $ key ) ) { if ( $ this -> matchGroup ( $ props , $ alias , $ class ) ) { return true ; } } } return false ; }
Returns true if a matching namespace is found.

@param string $alias
@param string $class
@return bool
Returns true if a matching namespace is found .