d class="column-6">ITA
->registerServiceProvider(new \Joomla\CMS\Service\Provider\HTMLRegistry()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Session()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Toolbar()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\WebAssetRegistry()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Router()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\User()); return $container; } /** * @since 4.0.0 */ public static function getContainer(): Container { if (!self::$container) { self::$container = self::createContainer(); } return self::$container; }// Set profiler start time and memory usage and mark afterLoad in the profiler.JDEBUG && \Joomla\CMS\Profiler\Profiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad');// Boot the DI container$container = \Joomla\CMS\Factory::getContainer();/* * Alias the session service keys to the web session service as that is the primary session backend for this application * * In addition to aliasing "common" service keys, we also create aliases for the PHP classes to ensure autowiring objects * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php';|
ClassNotFoundError
|
|---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "User" from namespace "Joomla\CMS\Service\Provider".
Did you forget a "use" statement for another namespace?
at /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php:625
at Joomla\CMS\Factory::createContainer()
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php:241)
at Joomla\CMS\Factory::getContainer()
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php:38)
at require_once('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php')
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/index.php:32)
|