Download the PHP package skalpa/silex-doctrine-annotations-provider without Composer
On this page you can find all versions of the php package skalpa/silex-doctrine-annotations-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package silex-doctrine-annotations-provider
Doctrine Annotations Service Provider for Silex 2.x / Pimple 3.x
Lets you to use the Doctrine annotations reader in your Silex/Pimple application.
Installation
Install the service provider using composer:
Registration
Configuration parameters
Parameter | Type | Default | Description |
---|---|---|---|
annotations.use_simple_reader |
bool |
false |
Whether to use the Doctrine AnnotationReader or SimpleAnnotationReader class |
annotations.register_autoloader |
bool |
true |
Whether to autoload annotations using the PHP autoloader |
annotations.cache |
string |Cache |
ArrayCache |
Doctrine\Common\Cache\Cache instance or name of a service that implements Doctrine\Common\Cache\Cache |
annotations.debug |
bool |
$app['debug'] |
Whether the cached reader should invalidate the cache files when the PHP class with annotations changed |
annotations.ignored_names |
string[] |
[] |
List of names that should be ignored by the annotations reader (Note: this is not supported by the SimpleAnnotationReader ) |
Configuring the annotations cache
By default the cache used by the annotations reader is an ArrayCache
,
which is probably not something you'll want to use on a production server.
If you already use a Doctrine Cache service provider and want to use an
already registered cache service, set annotations.cache
to the name
of the service:
Alternatively, you can override the annotations.cache
service and
provide your own cache provider:
All versions of silex-doctrine-annotations-provider with dependencies
pimple/pimple Version ^3.0
doctrine/annotations Version ^1.4
doctrine/cache Version ^1.7