forked from Snck3rs/contao-leaflet-maps
Replace insert tags and masked entities. (Fix #17)
This commit is contained in:
30
src/Netzmacht/Contao/Leaflet/ServiceContainerTrait.php
Normal file
30
src/Netzmacht/Contao/Leaflet/ServiceContainerTrait.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package dev
|
||||
* @author David Molineus <david.molineus@netzmacht.de>
|
||||
* @copyright 2015 netzmacht creative David Molineus
|
||||
* @license LGPL 3.0
|
||||
* @filesource
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet;
|
||||
|
||||
/**
|
||||
* Class ServiceContainerTrait provides simple access to the service container.
|
||||
*
|
||||
* @package Netzmacht\Contao\Leaflet
|
||||
*/
|
||||
trait ServiceContainerTrait
|
||||
{
|
||||
/**
|
||||
* Get the service container.
|
||||
*
|
||||
* @return ServiceContainer
|
||||
*/
|
||||
protected function getServiceContainer()
|
||||
{
|
||||
return $GLOBALS['container']['leaflet.service-container'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user