https://github.com/thecodingmachine/utils.common.doctrine-annotations-wrapper
Provide an install script for a Doctrine's AnnotationReader in Mouf Framework.
https://github.com/thecodingmachine/utils.common.doctrine-annotations-wrapper
Last synced: 10 months ago
JSON representation
Provide an install script for a Doctrine's AnnotationReader in Mouf Framework.
- Host: GitHub
- URL: https://github.com/thecodingmachine/utils.common.doctrine-annotations-wrapper
- Owner: thecodingmachine
- License: mit
- Created: 2014-04-22T10:12:54.000Z (about 12 years ago)
- Default Branch: 1.2
- Last Pushed: 2018-05-23T08:54:53.000Z (about 8 years ago)
- Last Synced: 2025-07-28T21:57:18.833Z (11 months ago)
- Language: PHP
- Homepage: https://mouf-php.com/packages/mouf/utils.common.doctrine-annotations-wrapper
- Size: 7.81 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Doctrine's Annotations for Mouf framework
=========================================
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`](http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html) 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](https://packagist.org/packages/mouf/utils.common.doctrine-annotations-wrapper)) 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!