public function frontControllerDirectory($sitePath)
    {
        $dirs = ['web', 'public'];

        foreach ($dirs as $dir) {
            if (is_dir($sitePath.'/'.$dir)) {
                return $dir;
            }
        }
        // Give up, and just return the default
        return is_file($sitePath.'/craft') ? 'web' : 'public';
    }
public function frontControllerDirectory($sitePath)
    {
        $dirs = ['web', 'public'];

        foreach ($dirs as $dir) {
            if (is_dir($sitePath.'/'.$dir)) {
                return $dir;
            }
        }
        // Give up, and just return the default
        return is_file($sitePath.'/craft') ? 'web' : 'public';
    }
public function frontControllerDirectory ( $ sitePath ) { $ dirs = [ 'web' , 'public' ] ; foreach ( $ dirs as $ dir ) { if ( is_dir ( $ sitePath . '/' . $ dir ) ) { return $ dir ; } } // Give up, and just return the default return is_file ( $ sitePath . '/craft' ) ? 'web' : 'public' ; }
Determine the name of the directory where the front controller lives.

@param  string  $sitePath
@return string
Determine the name of the directory where the front controller lives .