Important: #94280 - Move contents of ext_*.php into global namespace

See forge#94280

Description

When warming up caches, the code of the files ext_localconf.php and ext_tables.php are now scoped into the global namespace.

Example code from the cache file:

/**
 * Extension: frontend
 * File: /var/www/html/public/typo3/sysext/frontend/ext_localconf.php
 */

namespace {
    // Content of EXT:frontend/ext_localconf.php
}
Copied!

Having a namespace allows extension authors to import classes by the keyword use.

Example ext_localconf.php:

<?php

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3') or die();

ExtensionManagementUtility::addUserTSConfig('
    options.saveDocView = 1
    options.saveDocNew = 1
    options.saveDocNew.pages = 0
    options.saveDocNew.sys_file = 0
    options.saveDocNew.sys_file_metadata = 0
    options.disableDelete.sys_file = 1
');
Copied!