Deprecate ServiceContainerTrait::getService.
This commit is contained in:
1 parent
8a148ffaf8
commit
5171825a23
4 files changed
+5
-5
No files matched your search
@@ -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