Php 致命错误:Zend ServiceManager中出现未捕获异常
我有一个错误:Php 致命错误:Zend ServiceManager中出现未捕获异常,php,zend-framework,servicemanager,Php,Zend Framework,Servicemanager,我有一个错误: ( ! ) 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
( ! ) 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');
在原始项目之外的例行程序中
有什么建议吗?尝试运行composer更新和/或composer安装;) 拥有控制器的原始项目已经是最新的。问题是如何从另一个项目中的服务器例程访问操作。