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;
    }