Skip to content

Commit

Permalink
Refactor for D.R.Y
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent committed Oct 15, 2012
1 parent da969e0 commit 05a9e14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DependencyInjection/Compiler/PointcutMatchingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use JMS\AopBundle\Aop\PointcutInterface;
use CG\Core\ReflectionUtils;

/**
* Matches pointcuts against service methods.
Expand Down Expand Up @@ -130,10 +131,7 @@ private function processDefinition(Definition $definition, $pointcuts, &$interce
}

$classAdvices = array();
foreach ($class->getMethods(\ReflectionMethod::IS_PROTECTED | \ReflectionMethod::IS_PUBLIC) as $method) {
if ($method->isFinal()) {
continue;
}
foreach (ReflectionUtils::getOverrideableMethods($class) as $method) {

if ('__construct' === $method->name) {
continue;
Expand Down

0 comments on commit 05a9e14

Please sign in to comment.