mouf / utils.common.doctrine-annotations-wrapper
Provide an install script for a Doctrine's AnnotationReader in Mouf Framework.
Installs: 88 218
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 14
Forks: 0
Open Issues: 0
Type:mouf-library
Requires
- php: >=5.3.0
- doctrine/annotations: ~1.2
- mouf/utils.common.doctrine-cache-wrapper: ~1.0
README
Provides an install script for Doctrine's AnnotationReader in Mouf Framework.
Content of the package
This package contains an install script that provides a Doctrine's AnnotationReader
instance in a Mouf project.
This instance is called annotationReader
.
By default, it is configured as the following:
- You don't have to register annotations using the
AnnotationRegistry
. Indeed, the autoloader of Composer is directly used and therefore, any class accessible through Composer can be a valid Annotation. - The annotation reader stored in
annotationReader
instance requires annotations to exist. It will throw an exception if an annotation is not found. - Annotations must be fully qualified.
Installation
To install the package, just add its latest version to your composer.json (see the package in the packagist website) adn run the php composer.phar update
.
Then in Mouf validation process, a new task should be marked as To run, launch the installation process and you will have your annotationReader
instance ready to use!