第221行的/var/www/html/site/Solarium/Core/Client/Client.php中找不到“Symfony \ Component \ EventDispatcher \ EventDispatcher”类

I am trying to use the Solarium library with Zend Framework 2

  • I put the library in external folder of my zend2 application
  • I add this line to my Module.php:

    'Solarium' => realpath(__DIR__ . '/../../../library/Solarium'),

  • I add the config lines for host, port,.... to my application config

  • I create an instance and client example to do select requests but I get this error:

Class 'Symfony\Component\EventDispatcher\EventDispatcher' not found in /var/www/html/library/site/Solarium/Core/Client/Client.php on line 221