$container->registerServiceProvider(new MVCFactory('\\MT\\Component\\GPGallery'));
$container->registerServiceProvider(new ComponentDispatcherFactory('\\MT\\Component\\GPGallery'));
$container->set(
ComponentInterface::class,
function (Container $container) {
$component = new GPGalleryComponent($container->get(ComponentDispatcherFactoryInterface::class));
$component->setRegistry($container->get(Registry::class));
$component->setMVCFactory($container->get(MVCFactoryInterface::class));
$component->setCategoryFactory($container->get(CategoryFactoryInterface::class));
return $component;
}
}
return $this->instance;
}
return $callable($this->container);
}
/**
* Get the factory
*
}
throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
}
return $this->resources[$key]->getInstance();
}
/**
* Check if specified resource exists.
*
'container' => $container,
]
)
);
$extension = $container->get($type);
if ($extension instanceof BootableExtensionInterface) {
$extension->boot($container);
}
$component = str_starts_with($component, 'com_') ? substr($component, 4) : $component;
// Path to look for services
$path = JPATH_ADMINISTRATOR . '/components/com_' . $component;
return $this->loadExtension(ComponentInterface::class, $component, $path);
}
/**
* Boots the module with the given name.
*
* @since 3.3
*/
public function getComponentRouter($component)
{
if (!isset($this->componentRouters[$component])) {
$componentInstance = $this->app->bootComponent($component);
if ($componentInstance instanceof RouterServiceInterface) {
$this->componentRouters[$component] = $componentInstance->createRouter($this->app, $this->menu);
}
if (!isset($query['option'])) {
return;
}
$component = preg_replace('/[^A-Z0-9_\.-]/i', '', $query['option']);
$crouter = $this->getComponentRouter($component);
$query = $crouter->preprocess($query);
// Make sure any menu vars are used if no others are specified
if (
isset($query['Itemid'])
if (!\array_key_exists('build' . $stage, $this->rules)) {
throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__));
}
foreach ($this->rules['build' . $stage] as $rule) {
\call_user_func_array($rule, [&$this, &$uri]);
}
}
/**
* Create a uri based on a full or partial URL string
} else {
$uri = $this->createUri($url);
}
// Do the preprocess stage of the URL build process
$this->processBuildRules($uri, self::PROCESS_BEFORE);
// Do the main stage of the URL build process
$this->processBuildRules($uri);
// Do the postprocess stage of the URL build process
if (!isset(self::$_router[$client])) {
throw new \RuntimeException(Text::sprintf('JLIB_APPLICATION_ERROR_ROUTER_LOAD', $client), 500);
}
// Build route.
$uri = self::$_router[$client]->build($url);
$scheme = ['path', 'query', 'fragment'];
/*
* Get the secure/unsecure URLs.
*
}
$app = Factory::getApplication();
$client = $app->getName();
return static::link($client, $url, $xhtml, $tls, $absolute);
} catch (\RuntimeException $e) {
/**
* @deprecated 3.9 this method will not fail silently from 5.0
* Before 3.9.0 this method failed silently on router error. This B/C will be removed in Joomla 5.0
*/
$item->flink = 'index.php?Itemid=' . $item->id;
break;
}
if ((strpos($item->flink, 'index.php?') !== false) && strcasecmp(substr($item->flink, 0, 4), 'http')) {
$item->flink = Route::_($item->flink, true, $itemParams->get('secure'));
} else {
$item->flink = Route::_($item->flink);
}
// We prevent the double encoding because for some reason the $item is shared for menu modules and we get double encoding
defined('_JEXEC') or die;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\Menu\Site\Helper\MenuHelper;
$list = MenuHelper::getList($params);
$base = MenuHelper::getBase($params);
$active = MenuHelper::getActive($params);
$default = MenuHelper::getDefault();
$active_id = $active->id;
$default_id = $default->id;
unset($displayData);
} else {
extract($displayData);
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
$dispatcher = $app->bootModule($module->module, $app->getName())->getDispatcher($module, $app);
// Check if we have a dispatcher
if ($dispatcher) {
ob_start();
$dispatcher->dispatch();
$module->content = ob_get_clean();
}
// Add the flag that the module content has been rendered
$module->contentRendered = true;
// Get module parameters
$params = new Registry($module->params);
// Render the module content
static::renderRawModule($module, $params, $attribs);
// Return early if only the content is required
if (!empty($attribs['contentOnly'])) {
return $module->content;
}
$module->contentRendered = true;
return $module->content;
}
return ModuleHelper::renderModule($module, $attribs);
}
}
$user = Factory::getUser();
$frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest);
$menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus');
foreach (ModuleHelper::getModules($position) as $mod) {
$moduleHtml = $renderer->render($mod, $params, $content);
if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) {
$displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing];
LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
}
$cbuffer[$hash] = $tmpdata;
$cache->store($cbuffer, 'cbuffer_' . $type);
} else {
$this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title);
}
return parent::$_buffer[$type][$name][$title];
}
$replace = [];
$with = [];
foreach ($this->_template_tags as $jdoc => $args) {
$replace[] = $jdoc;
$with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
}
return str_replace($replace, $with, $this->_template);
}
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data)) {
$data = $error->getMessage();
}
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* 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 file
require_once dirname(__FILE__) . '/includes/app.php';
}
$lang = Factory::getLanguage();
$lang->load("com_jevents", JPATH_ADMINISTRATOR);
if (strpos($task, '.') == false) {
throw new Exception(Text::_('COM_JEVENTS_UNKNOWN_TASK'), 404);
return false;
}
list($controllerName, $cmd) = explode('.', $task);
$controllerName = strtolower($controllerName);
for ($i = 0; $i < $total; $i++) {
$segments[$i] = preg_replace('/-/', ':', $segments[$i], 1);
}
return $function($segments);
}
return [];
}
}
if (\count($segments)) {
// Handle component route
$component = preg_replace('/[^A-Z0-9_\.-]/i', '', $uri->getVar('option'));
$crouter = $this->getComponentRouter($component);
$uri->setQuery(array_merge($uri->getQuery(true), $crouter->parse($segments)));
}
$route = implode('/', $segments);
}
if (!\array_key_exists('parse' . $stage, $this->rules)) {
throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__));
}
foreach ($this->rules['parse' . $stage] as $rule) {
$rule($this, $uri);
}
}
/**
* Process the build uri query data based on custom defined rules
{
// Do the preprocess stage of the URL parse process
$this->processParseRules($uri, self::PROCESS_BEFORE);
// Do the main stage of the URL parse process
$this->processParseRules($uri);
// Do the postprocess stage of the URL parse process
$this->processParseRules($uri, self::PROCESS_AFTER);
// Check if all parts of the URL have been parsed.
// Get the full request URI.
$uri = clone Uri::getInstance();
// It is not possible to inject the SiteRouter as it requires a SiteApplication
// and we would end in an infinite loop
$result = $this->getContainer()->get(SiteRouter::class)->parse($uri, true);
$active = $this->getMenu()->getActive();
if (
$active !== null
// Mark afterInitialise in the profiler.
JDEBUG ? $this->profiler->mark('afterInitialise') : null;
// Route the application
$this->route();
// Mark afterRoute in the profiler.
JDEBUG ? $this->profiler->mark('afterRoute') : null;
if (!$this->isHandlingMultiFactorAuthentication()) {
$this->sanityCheckSystemVariables();
$this->setupLogging();
$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document) {
// Render the application output.
$this->render();
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* 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 file
require_once dirname(__FILE__) . '/includes/app.php';
[2/2]
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "GPGalleryComponent" from namespace "MT\Component\GPGallery\Administrator\Extension". Did you forget a "use" statement for another namespace? at /www/htdocs/w00eb771/merkenonline/joomla4/administrator/components/com_gpgallery/services/provider.php:36 at Joomla\DI\ServiceProviderInterface@anonymous /www/htdocs/w00eb771/merkenonline/joomla4/administrator/components/com_gpgallery/services/provider.php:17$bf->{closure}(object(Container)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/vendor/joomla/di/src/ContainerResource.php:182) at Joomla\DI\ContainerResource->getInstance() (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/vendor/joomla/di/src/Container.php:96) at Joomla\DI\Container->get('Joomla\\CMS\\Extension\\ComponentInterface') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Extension/ExtensionManagerTrait.php:177) at Joomla\CMS\Application\CMSApplication->loadExtension('Joomla\\CMS\\Extension\\ComponentInterface', 'gpgallery', '/www/htdocs/w00eb771/merkenonline/joomla4/administrator/components/com_gpgallery') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Extension/ExtensionManagerTrait.php:51) at Joomla\CMS\Application\CMSApplication->bootComponent('gpgallery') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/SiteRouter.php:565) at Joomla\CMS\Router\SiteRouter->getComponentRouter('com_gpgallery') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/SiteRouter.php:400) at Joomla\CMS\Router\SiteRouter->buildComponentPreprocess(object(SiteRouter), object(Uri)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Router.php:407) at Joomla\CMS\Router\Router->processBuildRules(object(Uri), 'preprocess') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Router.php:191) at Joomla\CMS\Router\Router->build('index.php?Itemid=130') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Route.php:150) at Joomla\CMS\Router\Route::link('site', 'index.php?Itemid=130', true, 0, false) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Route.php:99) at Joomla\CMS\Router\Route::_('index.php?Itemid=130', true, 0) (/www/htdocs/w00eb771/merkenonline/joomla4/modules/mod_menu/src/Helper/MenuHelper.php:154) at Joomla\Module\Menu\Site\Helper\MenuHelper::getList(object(Registry)) (/www/htdocs/w00eb771/merkenonline/joomla4/modules/mod_menu/mod_menu.php:16) at include('/www/htdocs/w00eb771/merkenonline/joomla4/modules/mod_menu/mod_menu.php') (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/www/htdocs/w00eb771/merkenonline/joomla4/modules/mod_menu/mod_menu.php', null) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Helper/ModuleHelper.php:281) at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'menu', 'style' => 'none')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Helper/ModuleHelper.php:161) at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'menu', 'style' => 'none')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99) at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'menu', 'style' => 'none'), null) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50) at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('menu', array('name' => 'menu', 'style' => 'none'), null) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/HtmlDocument.php:566) at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'menu', array('name' => 'menu', 'style' => 'none')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/HtmlDocument.php:853) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/HtmlDocument.php:638) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w00eb771/merkenonline/joomla4/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w00eb771/merkenonline/joomla4/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Exception)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(Exception)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Exception)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/w00eb771/merkenonline/joomla4/includes/app.php:61) at require_once('/www/htdocs/w00eb771/merkenonline/joomla4/includes/app.php') (/www/htdocs/w00eb771/merkenonline/joomla4/index.php:32) |
[1/2]
Exception
|
---|
Exception: Unknown Task at /www/htdocs/w00eb771/merkenonline/joomla4/components/com_jevents/router.php:597 at JEventsParseRoute(array('eventsnachtag', '2018', '9', '26', ':')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Component/Router/RouterLegacy.php:104) at Joomla\CMS\Component\Router\RouterLegacy->parse(array('eventsnachtag', '2018', '9', '26', ':')) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/SiteRouter.php:287) at Joomla\CMS\Router\SiteRouter->parseSefRoute(object(SiteRouter), object(Uri)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Router.php:384) at Joomla\CMS\Router\Router->processParseRules(object(Uri)) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Router/Router.php:147) at Joomla\CMS\Router\Router->parse(object(Uri), true) (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Application/SiteApplication.php:746) at Joomla\CMS\Application\SiteApplication->route() (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Application/SiteApplication.php:232) at Joomla\CMS\Application\SiteApplication->doExecute() (/www/htdocs/w00eb771/merkenonline/joomla4/libraries/src/Application/CMSApplication.php:293) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/w00eb771/merkenonline/joomla4/includes/app.php:61) at require_once('/www/htdocs/w00eb771/merkenonline/joomla4/includes/app.php') (/www/htdocs/w00eb771/merkenonline/joomla4/index.php:32) |