Skip to content

Commit

Permalink
Merge pull request #2 from SymfonyRotEbal/revert-1-resort-for-addMeth…
Browse files Browse the repository at this point in the history
…odCall

Revert "schmittjoh#49 correct order for addMethodCall()"
  • Loading branch information
4n70w4 authored Feb 14, 2019
2 parents 942d6bf + efaccf6 commit ce203b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions DependencyInjection/Compiler/PointcutMatchingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce203b3

Please sign in to comment.