Open davidbarre opened 8 years ago
OK I find the right syntax...
$app->register(new DoctrineOrmServiceProvider(), array(
'orm.proxies_dir' => __DIR__."/../../cache/doctrineProxies",
'orm.proxies_namespace' => $app['env'],
'orm.auto_generate_proxies' => $app['debug'],
'orm.default_cache' => array(
'driver' => 'redis',
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT'),
'password' => getenv('REDIS_PASSWORD'),
),
'orm.em.options' => array(
'cache_namespace' => $app['env'].'_',
'mappings' => array(
array(
'type' => 'annotation',
'namespace' => 'Models',
'path' => '',
),
),
),
));
Hi,
I try to set this redis option in my provider declaration :
Where I have to set this option ? Thanks for your answers.
I try this :
also this