ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ local_value 22 global_value ٝ
/** * Implementation of a DispatcherInterface supporting prioritized listeners. * * @since 1.0 */class Dispatcher implements DispatcherInterface{ /** * An array of registered events indexed by the event names. * * @var EventInterface[] * @return void * @private */function includeFile($file){ include $file;} * @return true|null True if loaded, null otherwise */ public function loadClass($class) { if ($file = $this->findFile($class)) { includeFile($file); return true; } return null; * * @since 3.4 */ public function loadClass($class) { if ($result = $this->loader->loadClass($class)) { \JLoader::applyAliasFor($class); } return $result; } $container->alias('dispatcher', EventDispatcherInterface::class) ->alias(EventDispatcher::class, EventDispatcherInterface::class) ->share( EventDispatcherInterface::class, function (Container $container) { return new EventDispatcher(); }, true ); }} if ($this->isShared()) { if ($this->instance === null) { $this->instance = $callable($this->container); } return $this->instance; } } throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName)); } return $this->resources[$key]->getInstance(); } /** * Check if specified resource exists. * ); $listener = new LazyServiceEventListener($container, 'session.event_listener.metadata_manager', 'onAfterSessionStart'); /** @var DispatcherInterface $dispatcher */ $dispatcher = $container->get(DispatcherInterface::class); $dispatcher->addListener(SessionEvents::START, $listener); } /** * Build the root session service * * @since 1.0 */ public function registerServiceProvider(ServiceProviderInterface $provider) { $provider->register($this); return $this; } /** ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Language()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Mailer()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Menu()) ->registerServiceProvider(new \Joomla\CMS\Service\Provider\Pathway()) ->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()); * @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 interface "DispatcherInterface" from namespace "Joomla\Event".
Did you forget a "use" statement for another namespace?
at /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/event/src/Dispatcher.php:16
at include()
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:571)
at Composer\Autoload\includeFile('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../joomla/event/src/Dispatcher.php')
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:428)
at Composer\Autoload\ClassLoader->loadClass('Joomla\\Event\\Dispatcher')
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\Event\\Dispatcher')
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/Dispatcher.php:44)
at Joomla\CMS\Service\Provider\Dispatcher->Joomla\CMS\Service\Provider\{closure}(object(Container))
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:176)
at Joomla\DI\ContainerResource->getInstance()
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/Container.php:96)
at Joomla\DI\Container->get('Joomla\\Event\\DispatcherInterface')
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/Session.php:285)
at Joomla\CMS\Service\Provider\Session->register(object(Container))
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/Container.php:766)
at Joomla\DI\Container->registerServiceProvider(object(Session))
(/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php:621)
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)
|