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