Browse files

Fix require on objects wich have autoload setted after like propel

  • Loading branch information...
1 parent 5f5070f commit f9d46b7e66f6fc91517a2d83b3760428ec9a8479 @cedriclombardot cedriclombardot committed Sep 22, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 DependencyInjection/Compiler/PointcutMatchingPass.php
View
6 DependencyInjection/Compiler/PointcutMatchingPass.php
@@ -93,6 +93,10 @@ private function processDefinition(Definition $definition, $pointcuts, &$interce
require_once $file;
}
+ if (!class_exists($definition->getClass())) {
+ return;
+ }
+
$class = new \ReflectionClass($definition->getClass());
// check if class is matched
@@ -188,4 +192,4 @@ private function getPointcuts()
return $pointcuts;
}
-}
+}

0 comments on commit f9d46b7

Please sign in to comment.