Releases: danadesrosiers/silex-annotation-provider
3.0
Redesigned annotation format. No more Doctrine Annotations.
Uses PSR-16 cache instead of Doctrine Cache.
Simplified feature set. Removes support for ServiceProviders, custom Service Controller registration, and other obscure customization options in favor of simplicity.
Minimum PHP version is now 7.1. No official support for HHVM.
2.1.2
Fixed fast register when the bootstrap is not at the root directory.
2.1.1
Fixes Fast Register and the controller registration errors it caused.
2.1
Adds Fast Register feature.
2.0.1
Fixes caching when using multiple controller directories (Issue #22).
Fixes out of date documentation in README and README cleanup.
2.0
This is the 2.0 release, supporting Silex version 2.
1.1 Release
This release introduces the @Controller
annotation and the 'annot.controllerDir' option. It is no longer necessary to register each controller. The annotation provider will search the given directory for classes that have the @Controller
and automatically register them.
Other updates include the ability to specify multiple methods in a single @Request
annotation (contributed by @DerManoMann), code cleanup, and tools to customize the provider's behavior.
1.0 Release
This release includes the following updates:
- Testing.
- Code cleanup.
- Reformatting to be PSR-2 compliant.
- Conversion to PSR-4.
- It is no longer necessary to specify srcDir when registering the service. It is now deprecated. This was a convenient consequence of the PSR-4 conversion.
Bug Fixes
The Route annotation did not work if more than one annotation was nested inside it.
Now the args argument of the Modifier annotation can be omitted if there are no arguments.
Updates to specifying a cache class, added @Secure annotation.
Updated annot.cache to take an instance of any class implementing Doctrine\Common\Cache\Cache
. Previously annot.cache accepted only a string which limited caching choices to existing Doctrine cache implementations that did not require any setup more complicated than an empty constructor. Now anything could be used as long as it implements the Cache interface. The string input still works as it always has, but is not recommended.
Added the @secure annotation. This provides the functionality included by the security trait.