public function collectAnnotationMetadata($classes, $metadataCollection)
    {
        // Load annotation and parse classes
        new Injectable();
        new InjectArgument(['var' => 'type']);
        new Service(['value' => '']);

        $reader = new AnnotationReader();
        $resolver = new AnnotationResolver(
            new AnnotationClassResolver($reader),
            new AnnotationPropertyResolver($reader),
            new AnnotationMethodResolver($reader)
        );

        $annotationCollector = new AnnotationMetadataCollector($resolver);

        // Rewrite collection by entity name
        return $annotationCollector->collect($classes, $metadataCollection);
    }
public function collectAnnotationMetadata($classes, $metadataCollection)
    {
        // Load annotation and parse classes
        new Injectable();
        new InjectArgument(['var' => 'type']);
        new Service(['value' => '']);

        $reader = new AnnotationReader();
        $resolver = new AnnotationResolver(
            new AnnotationClassResolver($reader),
            new AnnotationPropertyResolver($reader),
            new AnnotationMethodResolver($reader)
        );

        $annotationCollector = new AnnotationMetadataCollector($resolver);

        // Rewrite collection by entity name
        return $annotationCollector->collect($classes, $metadataCollection);
    }
public function collectAnnotationMetadata ( $ classes , $ metadataCollection ) { // Load annotation and parse classes new Injectable ( ) ; new InjectArgument ( [ 'var' => 'type' ] ) ; new Service ( [ 'value' => '' ] ) ; $ reader = new AnnotationReader ( ) ; $ resolver = new AnnotationResolver ( new AnnotationClassResolver ( $ reader ) , new AnnotationPropertyResolver ( $ reader ) , new AnnotationMethodResolver ( $ reader ) ) ; $ annotationCollector = new AnnotationMetadataCollector ( $ resolver ) ; // Rewrite collection by entity name return $ annotationCollector -> collect ( $ classes , $ metadataCollection ) ; }
Get annotation metadata

@param $classes
@param $metadataCollection
@return array|\samsonframework\container\metadata\ClassMetadata[]
Get annotation metadata