public static function getConsoleDir()
    {
        $rootDir = sprintf('%s/../../../../../../../..', __DIR__);

        $paths = [
            'bin',
            'app',
        ];

        foreach ($paths as $path) {
            $fullPath = sprintf('%s/%s', $rootDir, $path);

            if (true === is_dir($fullPath) && true === file_exists(sprintf('%s/console', $fullPath))) {
                return $fullPath;
            }
        }

        return null;
    }
public static function getConsoleDir()
    {
        $rootDir = sprintf('%s/../../../../../../../..', __DIR__);

        $paths = [
            'bin',
            'app',
        ];

        foreach ($paths as $path) {
            $fullPath = sprintf('%s/%s', $rootDir, $path);

            if (true === is_dir($fullPath) && true === file_exists(sprintf('%s/console', $fullPath))) {
                return $fullPath;
            }
        }

        return null;
    }
public static function getConsoleDir ( ) { $ rootDir = sprintf ( '%s/../../../../../../../..' , __DIR__ ) ; $ paths = [ 'bin' , 'app' , ] ; foreach ( $ paths as $ path ) { $ fullPath = sprintf ( '%s/%s' , $ rootDir , $ path ) ; if ( true === is_dir ( $ fullPath ) && true === file_exists ( sprintf ( '%s/console' , $ fullPath ) ) ) { return $ fullPath ; } } return null ; }
Get Console Dir

@return null|string
Get Console Dir