From efaccf628e58e29c64855155374bfcdc638bb732 Mon Sep 17 00:00:00 2001 From: 4n70w4 <38257723+4n70w4@users.noreply.github.com> Date: Thu, 14 Feb 2019 17:47:46 +0300 Subject: [PATCH] Revert "#49 correct order for addMethodCall()" --- DependencyInjection/Compiler/PointcutMatchingPass.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)