public function instance($name)
    {
        // If the class name starts with a dot, then find the class in the same class path as the caller
        if(substr($name, 0, 1) == '.')
        {
            $name = $this->getJaxonClassPath() . $name;
        }
        // The class namespace is prepended to the class name
        elseif(substr($name, 0, 1) == ':' && ($namespace = $this->getJaxonNamespace()))
        {
            $name = str_replace('\\', '.', trim($namespace, '\\')) . '.' . substr($name, 1);
        }
        return jaxon()->sentry()->instance($name);
    }
public function instance($name)
    {
        // If the class name starts with a dot, then find the class in the same class path as the caller
        if(substr($name, 0, 1) == '.')
        {
            $name = $this->getJaxonClassPath() . $name;
        }
        // The class namespace is prepended to the class name
        elseif(substr($name, 0, 1) == ':' && ($namespace = $this->getJaxonNamespace()))
        {
            $name = str_replace('\\', '.', trim($namespace, '\\')) . '.' . substr($name, 1);
        }
        return jaxon()->sentry()->instance($name);
    }
public function instance ( $ name ) { // If the class name starts with a dot, then find the class in the same class path as the caller if ( substr ( $ name , 0 , 1 ) == '.' ) { $ name = $ this -> getJaxonClassPath ( ) . $ name ; } // The class namespace is prepended to the class name elseif ( substr ( $ name , 0 , 1 ) == ':' && ( $ namespace = $ this -> getJaxonNamespace ( ) ) ) { $ name = str_replace ( '\\' , '.' , trim ( $ namespace , '\\' ) ) . '.' . substr ( $ name , 1 ) ; } return jaxon ( ) -> sentry ( ) -> instance ( $ name ) ; }
Get an instance of a Jaxon class by name

@param string $name the class name

@return Jaxon\Sentry\Armada|null the Jaxon class instance, or null
Get an instance of a Jaxon class by name