// The DoctrineCacheServiceProvider will register a service named "cache"
$app->register(new DoctrineCacheServiceProvider());
// Cache annotations using the "cache" service
$app->register(new AnnotationsServiceProvider(), [
'annotations.cache' => 'cache',
]);
$app->register(new AnnotationsServiceProvider(), [
'annotations.cache' => function () {
$cache = new \Doctrine\Common\Cache\PhpFileCache(__DIR__.'/cache);
$cache->setNamespace('annotations');
return $cache;
},
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.