* DataFormatter constructor. */ public function __construct() { $this->cloner = new VarCloner(); $this->dumper = new CliDumper(); } /** * @param $data * @return string * @return DataFormatterInterface */ public static function getDefaultDataFormatter() { if (self::$defaultDataFormatter === null) { self::$defaultDataFormatter = new DataFormatter(); } return self::$defaultDataFormatter; } /** * @return DataFormatterInterface */ public function getDataFormatter() { if ($this->dataFormater === null) { $this->dataFormater = self::getDefaultDataFormatter(); } return $this->dataFormater; } /** public function collect() { $this->updatePeakUsage(); return array( 'peak_usage' => $this->peakUsage, 'peak_usage_str' => $this->getDataFormatter()->formatBytes($this->peakUsage, 0) ); } /** * @return string $request_variables ) ); foreach ($this->collectors as $name => $collector) { $this->data[$name] = $collector->collect(); } // Remove all invalid (non UTF-8) characters array_walk_recursive($this->data, function (&$item) { if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) { * @return array */ public function getData() { if ($this->data === null) { $this->collect(); } return $this->data; } /** $js .= $this->getAddDatasetCode($id, $data, '(stacked)'); } } $suffix = !$initialize ? '(ajax)' : null; $js .= $this->getAddDatasetCode($this->debugBar->getCurrentRequestId(), $this->debugBar->getData(), $suffix); $nonce = ''; if ($doc->cspNonce) { $nonce = ' nonce="' . $doc->cspNonce . '"'; echo $contents; return; } echo str_replace('</body>', $debugBarRenderer->renderHead() . $debugBarRenderer->render() . '</body>', $contents); } /** * AJAX handler * if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } // Send the application response. $this->respond(); // Trigger the onAfterRespond event. $this->getDispatcher()->dispatch('onAfterRespond'); } /** * Check if the user is required to reset their password. *// 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 filerequire_once dirname(__FILE__) . '/includes/app.php';|
ClassNotFoundError
|
|---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "CliDumper" from namespace "Symfony\Component\VarDumper\Dumper".
Did you forget a "use" statement for another namespace?
at /home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DataFormatter/DataFormatter.php:28
at DebugBar\DataFormatter\DataFormatter->__construct()
(/home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/DataCollector.php:49)
at DebugBar\DataCollector\DataCollector::getDefaultDataFormatter()
(/home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/DataCollector.php:72)
at DebugBar\DataCollector\DataCollector->getDataFormatter()
(/home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/MemoryCollector.php:70)
at DebugBar\DataCollector\MemoryCollector->collect()
(/home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238)
at DebugBar\DebugBar->collect()
(/home/netsoft/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265)
at DebugBar\DebugBar->getData()
(/home/netsoft/public_html/plugins/system/debug/src/JavascriptRenderer.php:119)
at Joomla\Plugin\System\Debug\JavascriptRenderer->render()
(/home/netsoft/public_html/plugins/system/debug/debug.php:370)
at PlgSystemDebug->onAfterRespond(object(Event))
(/home/netsoft/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onAfterRespond')
(/home/netsoft/public_html/libraries/src/Application/CMSApplication.php:333)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/netsoft/public_html/includes/app.php:61)
at require_once('/home/netsoft/public_html/includes/app.php')
(/home/netsoft/public_html/index.php:34)
|