src/base/Starter.php
private function findRootDir()
    {
        $configFile = 'hidev.yml';
        for ($i = 0; $i < 9; ++$i) {
            if (file_exists($configFile)) {
                return getcwd();
            }
            chdir('..');
        }
        throw new InvalidParamException("Not a hidev project (or any of the parent directories).\nUse `hidev init` to initialize hidev project.");
    }
private function findRootDir()
    {
        $configFile = 'hidev.yml';
        for ($i = 0; $i < 9; ++$i) {
            if (file_exists($configFile)) {
                return getcwd();
            }
            chdir('..');
        }
        throw new InvalidParamException("Not a hidev project (or any of the parent directories).\nUse `hidev init` to initialize hidev project.");
    }
private function findRootDir ( ) { $ configFile = 'hidev.yml' ; for ( $ i = 0 ; $ i < 9 ; ++ $ i ) { if ( file_exists ( $ configFile ) ) { return getcwd ( ) ; } chdir ( '..' ) ; } throw new InvalidParamException ( "Not a hidev project (or any of the parent directories).\nUse `hidev init` to initialize hidev project." ) ; }
Chdirs to project's root by looking for config file in the current directory and up.
@throws InvalidParamException when failed to find
@return string path to the root directory of hidev project
Chdirs to project s root by looking for config file in the current directory and up .