Ejemplo n.º 1
0
 protected function fixPath(Generate\Collections $collections)
 {
     $self = $this;
     $fixPath = function ($value) use($self) {
         $value->setPath($self->getRelativePath($value->getPath()));
     };
     $collections->map($fixPath);
     array_map($fixPath, $collections->getAnnotationByName('DefaultValue'));
     array_map($fixPath, $collections->getAnnotationByName('Plugin'));
     array_map($fixPath, $collections->getAnnotationByName('Hydratate'));
     array_map($fixPath, $collections->getAnnotationByName('Validate'));
 }