mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-18 05:15:16 +01:00
Deprecate ServiceContainerTrait::getService.
This commit is contained in:
@@ -60,7 +60,7 @@ class Hooks
|
||||
*/
|
||||
protected function getMapService()
|
||||
{
|
||||
return static::getService('leaflet.map.service');
|
||||
return static::getServiceContainer()->getService('leaflet.map.service');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,7 +81,7 @@ class Hooks
|
||||
|
||||
return $mapService->generate($mapId, null, $mapId, $template, $style);
|
||||
} catch (\Exception $e) {
|
||||
if (static::getService('config')->get('debugMode')) {
|
||||
if (static::getServiceContainer()->getConfig()->get('debugMode')) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user