armetiz/LeezyPheanstalkBundle — Issue #3: Faulty dependency injection definition
Author: tolnem
Created: 2012-02-29 13:20:46+00:00
State: open

When trying to get this to work, I stumbled over the class name in the dependency injection defintion in LeezyPheanstalkExtension.

Currently, it says "Pheanstalk\Pheanstalk", but when using that I get a class not found error.

To get it to work, I had to change it to

$pheanstalkDef = new Definition("Pheanstalk", array ($server, $port, $timeout));

and add a line in autoload.php:

$loader->registerPrefixes(array(
...
'Pheanstalk' => __DIR__.'/../vendor/pheanstalk/classes',
));

Did I miss a simpler solution?