From 43e13476b683b8345ac955759958d4d6aaf37aca Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 3 Nov 2023 19:46:05 -0400 Subject: [PATCH] - Removing annotations --- src/TaskFetcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]; }