Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
/ annotations Public archive

[READ ONLY] Automatic Annotation Discovery. Subtree split of the Spiral Annotations component (see spiral/framework)

License

Notifications You must be signed in to change notification settings

spiral-modules/annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Annotation Discovery

Latest Stable Version Build Status Codecov

Package is deprecated. Please, use spiral/attributes instead

Installation

Service does not require any bootloader and can be enabled in spiral application with simple composer dependency.

$ composer require spiral/annotations 

Example

To find all annotated classes:

use Spiral\Annotations;

$locator = new Annotations\AnnotationLocator($classLocator); 

foreach($locator->findClasses(MyAnnotation::class) as $class) {
    dump($class->getClass());
    dump($class->getAnnotation());
} 

About

[READ ONLY] Automatic Annotation Discovery. Subtree split of the Spiral Annotations component (see spiral/framework)

Topics

Resources

License

Stars

Watchers

Forks

Languages