protected function getRegisteredAlias($class)
    {
        // Normalize to Unix path so we can use basename to remove the namespace
        $alias = basename(str_replace('\\', '/', $class));

        return isset($this->aliases[$alias]) ? $alias : null;
    }
protected function getRegisteredAlias($class)
    {
        // Normalize to Unix path so we can use basename to remove the namespace
        $alias = basename(str_replace('\\', '/', $class));

        return isset($this->aliases[$alias]) ? $alias : null;
    }
protected function getRegisteredAlias ( $ class ) { // Normalize to Unix path so we can use basename to remove the namespace $ alias = basename ( str_replace ( '\\' , '/' , $ class ) ) ; return isset ( $ this -> aliases [ $ alias ] ) ? $ alias : null ; }
Returns the class alias if it is registered.

@param string $class
@return string|null
Returns the class alias if it is registered .