diff --git a/src/TaskFetcher.php b/src/TaskFetcher.php index 0b572df..c876d5e 100644 --- a/src/TaskFetcher.php +++ b/src/TaskFetcher.php @@ -30,7 +30,7 @@ class TaskFetcher { } else { $this->annotations = [ - 'method' => [ Annotation\Method\Cronard::class, Attribute\Method\Cronard::class ], + 'method' => [ Attribute\Method\Cronard::class ], ]; } } @@ -80,7 +80,7 @@ class TaskFetcher { # Should generate an equivalent of Ulmus's object reflection here ! $objectResolver = new ObjectResolver($class, true, true, false, true); - foreach($objectResolver->getAnnotationListFromClassname( $this->annotations['method'], false ) as $func => $cronard) { + foreach($objectResolver->getAttributeListFromClassname( $this->annotations['method'], false ) as $func => $cronard) { foreach($cronard as $task) { $list[] = [ 'class' => $class, 'method' => $func, 'annotation' => $task ]; }