Skip to content

Commit

Permalink
Merge remote branch 'FabienPennequin/fix_doctrine_events'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Potencier authored and Fabien Potencier committed Mar 18, 2011
2 parents 5658d22 + 8d9613b commit 9b33148
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -32,7 +32,7 @@ protected function registerSubscribers($prefix, $definition)
);

foreach ($subscribers as $id => $instances) {
$definition->addMethodCall('addSubscriber', array(new Reference($id)));
$definition->addMethodCall('addEventSubscriber', array(new Reference($id)));
}
}

Expand All @@ -52,7 +52,7 @@ protected function registerListeners($prefix, $definition)
}

if (0 < count($events)) {
$definition->addMethodCall('addListener', array(
$definition->addMethodCall('addEventListener', array(
$events,
new Reference($listenerId),
));
Expand Down

0 comments on commit 9b33148

Please sign in to comment.