public function getRootDir()
    {
        if (null === $this->rootDir) {
            $reflector = new \ReflectionClass($this);
            $rootDir = dirname($reflector->getFileName());
            $this->rootDir = str_replace('vendor/james481/micro-cms/src/MicroCMS/Kernel', '', $rootDir);
        }

        return($this->rootDir);
    }
public function getRootDir()
    {
        if (null === $this->rootDir) {
            $reflector = new \ReflectionClass($this);
            $rootDir = dirname($reflector->getFileName());
            $this->rootDir = str_replace('vendor/james481/micro-cms/src/MicroCMS/Kernel', '', $rootDir);
        }

        return($this->rootDir);
    }
public function getRootDir ( ) { if ( null === $ this -> rootDir ) { $ reflector = new \ ReflectionClass ( $ this ) ; $ rootDir = dirname ( $ reflector -> getFileName ( ) ) ; $ this -> rootDir = str_replace ( 'vendor/james481/micro-cms/src/MicroCMS/Kernel' , '' , $ rootDir ) ; } return ( $ this -> rootDir ) ; }
getRootDir
Gets the application root directory

@return string $rootDir
getRootDir Gets the application root directory