0

我有这个错误:

( ! ) Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Professor/Controller/WebinarController' in /uov-videos/www/david/plataovirtual/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 526

当我尝试使用时会发生这种情况:

   $app = Zend\Mvc\Application::init(require 'config/application.config.php');
    $application = $app->getMvcEvent()->getApplication();
    $sm = $application->getServiceManager();
    $webinar_controller = $sm->get('Professor/Controller/WebinarController');

在原始项目之外的例程中。

有什么建议么?

4

2 回答 2

0

我有同样的问题,配置你的PHP版本兼容

于 2021-11-29T06:10:14.620 回答
0

尝试运行作曲家更新和/或作曲家安装;)

于 2017-03-06T17:26:18.517 回答