src/Silicone/Application.php
public function getRootDir()
    {
        static $dir;
        if (empty($dir)) {
            $rc = new \ReflectionClass(get_class($this));
            $dir = dirname(dirname($rc->getFileName()));
        }
        return $dir;
    }
public function getRootDir()
    {
        static $dir;
        if (empty($dir)) {
            $rc = new \ReflectionClass(get_class($this));
            $dir = dirname(dirname($rc->getFileName()));
        }
        return $dir;
    }
public function getRootDir ( ) { static $ dir ; if ( empty ( $ dir ) ) { $ rc = new \ ReflectionClass ( get_class ( $ this ) ) ; $ dir = dirname ( dirname ( $ rc -> getFileName ( ) ) ) ; } return $ dir ; }
Get root directory.
@return string
Get root directory .