Skip to content

Commit

Permalink
Merge pull request #3 from SymfonyRotEbal/resort-for-addMethodCall
Browse files Browse the repository at this point in the history
schmittjoh#49 correct order for addMethodCall()
  • Loading branch information
4n70w4 authored Feb 14, 2019
2 parents ce203b3 + 6a0eb56 commit 146cef9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DependencyInjection/Compiler/PointcutMatchingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 146cef9

Please sign in to comment.