public function buildBundleBaseDirectoryFromClassname($classname)
    {
        if (false === array_key_exists($classname, $this->reflectionClasses)) {
            $this->reflectionClasses[$classname] = new \ReflectionClass($classname);
        }

        $baseDir = dirname($this->reflectionClasses[$classname]->getFileName());

        if (!is_dir($baseDir)) {
            throw new \RuntimeException("Invalid bundle `$bundle` base directory, expected `$baseDir` to exist.");
        }

        return $baseDir;
    }
public function buildBundleBaseDirectoryFromClassname($classname)
    {
        if (false === array_key_exists($classname, $this->reflectionClasses)) {
            $this->reflectionClasses[$classname] = new \ReflectionClass($classname);
        }

        $baseDir = dirname($this->reflectionClasses[$classname]->getFileName());

        if (!is_dir($baseDir)) {
            throw new \RuntimeException("Invalid bundle `$bundle` base directory, expected `$baseDir` to exist.");
        }

        return $baseDir;
    }
public function buildBundleBaseDirectoryFromClassname ( $ classname ) { if ( false === array_key_exists ( $ classname , $ this -> reflectionClasses ) ) { $ this -> reflectionClasses [ $ classname ] = new \ ReflectionClass ( $ classname ) ; } $ baseDir = dirname ( $ this -> reflectionClasses [ $ classname ] -> getFileName ( ) ) ; if ( ! is_dir ( $ baseDir ) ) { throw new \ RuntimeException ( "Invalid bundle `$bundle` base directory, expected `$baseDir` to exist." ) ; } return $ baseDir ; }
Computes and returns bundle base directory.

@param string $classname

@return string
Computes and returns bundle base directory .