mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-17 21:05:17 +01:00
Deprecate ServiceContainerTrait::getService.
This commit is contained in:
@@ -46,7 +46,7 @@ class Layer
|
||||
public function __construct()
|
||||
{
|
||||
$this->layers = &$GLOBALS['LEAFLET_LAYERS'];
|
||||
$this->database = static::getService('database.connection');
|
||||
$this->database = static::getServiceContainer()->getDatabaseConnection();
|
||||
|
||||
\Controller::loadLanguageFile('leaflet_layer');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user