Skip to content

Commit

Permalink
Fix error when initializing FeatureManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Miertsch committed May 10, 2015
1 parent a0ff371 commit b4ed1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventStore/EventStoreFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
namespace Prooph\Proophessor\EventStore;

use Prooph\Common\ServiceLocator\ZF2\Zf2ServiceManagerProxy;
use Prooph\EventStore\Configuration\Configuration;
use Prooph\EventStore\EventStore;
use Prooph\EventStore\Feature\FeatureManager;
Expand Down Expand Up @@ -84,7 +85,7 @@ public function createService(ServiceLocatorInterface $serviceLocator)

$featureManager->setServiceLocator($serviceLocator);

$esConfiguration->setFeatureManager($featureManager);
$esConfiguration->setFeatureManager(Zf2ServiceManagerProxy::proxy($featureManager));

return new EventStore($esConfiguration);
}
Expand Down

0 comments on commit b4ed1d9

Please sign in to comment.