public static function clearDocumentRoot()
    {
        $rootDirs = array("css", "js", "media", "font");
        foreach ($rootDirs as $dir) {
            if (file_exists(WEB_DIR . DIRECTORY_SEPARATOR . $dir)) {
                try {
                    self::deleteDir(WEB_DIR . DIRECTORY_SEPARATOR . $dir);
                } catch (\Exception $e) {
                    Logger::log($e->getMessage());
                }
            }
        }
    }
public static function clearDocumentRoot()
    {
        $rootDirs = array("css", "js", "media", "font");
        foreach ($rootDirs as $dir) {
            if (file_exists(WEB_DIR . DIRECTORY_SEPARATOR . $dir)) {
                try {
                    self::deleteDir(WEB_DIR . DIRECTORY_SEPARATOR . $dir);
                } catch (\Exception $e) {
                    Logger::log($e->getMessage());
                }
            }
        }
    }
public static function clearDocumentRoot ( ) { $ rootDirs = array ( "css" , "js" , "media" , "font" ) ; foreach ( $ rootDirs as $ dir ) { if ( file_exists ( WEB_DIR . DIRECTORY_SEPARATOR . $ dir ) ) { try { self :: deleteDir ( WEB_DIR . DIRECTORY_SEPARATOR . $ dir ) ; } catch ( \ Exception $ e ) { Logger :: log ( $ e -> getMessage ( ) ) ; } } } }
Method that remove all data in the document root path
Method that remove all data in the document root path