我有这个错误:
( ! ) 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');
在原始项目之外的例程中。
有什么建议么?