Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 致命错误:Zend ServiceManager中出现未捕获异常_Php_Zend Framework_Servicemanager - Fatal编程技术网

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安装;)

拥有控制器的原始项目已经是最新的。问题是如何从另一个项目中的服务器例程访问操作。