private function autoloadThrowWrappers($namespace, $classname)
    {
        if (false === is_array($this->_streamWrappers)) {
            return false;
        }

        foreach ($this->_streamWrappers as $n => $wrappers) {
            if (0 === strpos($namespace, $n)) {
                $classpath = str_replace(array($n, NAMESPACE_SEPARATOR), array('', DIRECTORY_SEPARATOR), $namespace);
                if (DIRECTORY_SEPARATOR == substr($classpath, 0, 1)) {
                    $classpath = substr($classpath, 1);
                }

                foreach ($wrappers as $wrapper) {
                    try {
                        @include sprintf('%s://%s/%s', $wrapper['protocol'], $classpath, $classname);

                        return true;
                    } catch (ClassWrapperException $e) {
                        // The class wrapper cannot return a valid class
                        throw $e;
                    } catch (\RuntimeException $e) {
                        // The include php file is not valid
                        throw new Exception\SyntaxErrorException($e->getMessage(), null, $e->getPrevious());
                    } catch (BBException $e) {
                        // Nothing to do
                    }
                }

                $this->_registeredNamespace = true;
            }
        }

        return false;
    }
private function autoloadThrowWrappers($namespace, $classname)
    {
        if (false === is_array($this->_streamWrappers)) {
            return false;
        }

        foreach ($this->_streamWrappers as $n => $wrappers) {
            if (0 === strpos($namespace, $n)) {
                $classpath = str_replace(array($n, NAMESPACE_SEPARATOR), array('', DIRECTORY_SEPARATOR), $namespace);
                if (DIRECTORY_SEPARATOR == substr($classpath, 0, 1)) {
                    $classpath = substr($classpath, 1);
                }

                foreach ($wrappers as $wrapper) {
                    try {
                        @include sprintf('%s://%s/%s', $wrapper['protocol'], $classpath, $classname);

                        return true;
                    } catch (ClassWrapperException $e) {
                        // The class wrapper cannot return a valid class
                        throw $e;
                    } catch (\RuntimeException $e) {
                        // The include php file is not valid
                        throw new Exception\SyntaxErrorException($e->getMessage(), null, $e->getPrevious());
                    } catch (BBException $e) {
                        // Nothing to do
                    }
                }

                $this->_registeredNamespace = true;
            }
        }

        return false;
    }
private function autoloadThrowWrappers ( $ namespace , $ classname ) { if ( false === is_array ( $ this -> _streamWrappers ) ) { return false ; } foreach ( $ this -> _streamWrappers as $ n => $ wrappers ) { if ( 0 === strpos ( $ namespace , $ n ) ) { $ classpath = str_replace ( array ( $ n , NAMESPACE_SEPARATOR ) , array ( '' , DIRECTORY_SEPARATOR ) , $ namespace ) ; if ( DIRECTORY_SEPARATOR == substr ( $ classpath , 0 , 1 ) ) { $ classpath = substr ( $ classpath , 1 ) ; } foreach ( $ wrappers as $ wrapper ) { try { @ include sprintf ( '%s://%s/%s' , $ wrapper [ 'protocol' ] , $ classpath , $ classname ) ; return true ; } catch ( ClassWrapperException $ e ) { // The class wrapper cannot return a valid class throw $ e ; } catch ( \ RuntimeException $ e ) { // The include php file is not valid throw new Exception \ SyntaxErrorException ( $ e -> getMessage ( ) , null , $ e -> getPrevious ( ) ) ; } catch ( BBException $ e ) { // Nothing to do } } $ this -> _registeredNamespace = true ; } } return false ; }
Looks for class definition throw declared wrappers according to the namespace.

@param string $namespace the namespace's class
@param string $classname the class name looked for

@return Boolean TRUE if the class is found FALSE else

@throws \BackBee\Stream\ClassWrapper\Exception\ClassWrapperException Occurs when the wrapper can not build PHP code
@throws \BackBee\AutoLoader\Exception\SyntaxErrorException           Occurs when the generated PHP code is not valid
Looks for class definition throw declared wrappers according to the namespace .