diff --git a/DependencyInjection/Compiler/PointcutMatchingPass.php b/DependencyInjection/Compiler/PointcutMatchingPass.php index 6419647..635c82a 100644 --- a/DependencyInjection/Compiler/PointcutMatchingPass.php +++ b/DependencyInjection/Compiler/PointcutMatchingPass.php @@ -186,12 +186,9 @@ private function processDefinition(Definition $definition, $pointcuts, &$interce $enhancer->writeClass($proxyFilename); $definition->setFile($proxyFilename); $definition->setClass($enhancer->getClassName($class)); - - $tinterceptor_loader = array(array('__CGInterception__setLoader', array( + $definition->addMethodCall('__CGInterception__setLoader', array( new Reference('jms_aop.interceptor_loader') - ))); - - $definition->setMethodCalls(array_merge($tinterceptor_loader, $definition->getMethodCalls() ) ); + )); } private function relativizePath($targetPath, $path)