mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Bypass filesystem cache in debug mode.
This commit is contained in:
2 files changed
+8
-3
No files matched your search
@@ -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