0

I'm having this error:

( ! ) 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

This happens when I'm trying to use:

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

In a routine outside the original project.

Any suggestions?

MatejMecka
  • 1,448
  • 2
  • 24
  • 37
David Dutra
  • 391
  • 7
  • 21

2 Answers2

0

Try to run a composer update and/or composer install ;)

  • The original project witch has the Controller is already up to date. The problem is how to access an action from a server routine in another project. – David Dutra Mar 06 '17 at 17:42
0

I had the same problem, configure your PHP version is compatible

Isaque Palmieri
  • 97
  • 2
  • 2
  • 9