forked from Snck3rs/contao-leaflet-maps
Bypass filesystem cache in debug mode.
This commit is contained in:
@@ -49,5 +49,13 @@ class NetzmachtContaoLeafletExtension extends Extension
|
||||
$loader->load('mappers.yml');
|
||||
$loader->load('encoders.yml');
|
||||
$loader->load('layers.yml');
|
||||
|
||||
if (!$container->hasDefinition('netzmacht.contao_leaflet.cache')) {
|
||||
if ($container->getParameter('kernel.debug')) {
|
||||
$container->setAlias('netzmacht.contao_leaflet.cache', 'netzmacht.contao_leaflet.cache.debug');
|
||||
} else {
|
||||
$container->setAlias('netzmacht.contao_leaflet.cache', 'netzmacht.contao_leaflet.cache.default');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user