- Removing annotations
This commit is contained in:
		
							parent
							
								
									16a6e351a1
								
							
						
					
					
						commit
						43e13476b6
					
				@ -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 ];
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user