- Removing annotations

This commit is contained in:
Dave M. 2023-11-03 19:46:05 -04:00
parent 16a6e351a1
commit 43e13476b6
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class TaskFetcher {
} }
else { else {
$this->annotations = [ $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 ! # Should generate an equivalent of Ulmus's object reflection here !
$objectResolver = new ObjectResolver($class, true, true, false, true); $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) { foreach($cronard as $task) {
$list[] = [ 'class' => $class, 'method' => $func, 'annotation' => $task ]; $list[] = [ 'class' => $class, 'method' => $func, 'annotation' => $task ];
} }