You're passing the wrong namespace prefix in your service provider:
Code:
$container->registerServiceProvider(new MVCFactory('\\Joomla\\Component\\Faq'));$container->registerServiceProvider(new ComponentDispatcherFactory('\\Joomla\\Component\\Faq'));
Please don't follow this advice. It's an ancient borderline magic method that only makes things harder to debug. It really should have been removed a long time ago.Instead of your "$this->thing = $model->get<thing>();" lines you want "$this->thing = $this->get('<thing>');".
Statistics: Posted by SharkyKZ — Thu Mar 28, 2024 6:29 am