mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Use the insertTag replacer of the toolkit.
This commit is contained in:
@@ -113,8 +113,8 @@ $container['leaflet.definition.builder'] = $container->share(function($container
|
|||||||
return $boot->initializeLeafletBuilder($leaflet);
|
return $boot->initializeLeafletBuilder($leaflet);
|
||||||
});
|
});
|
||||||
|
|
||||||
$container['leaflet.frontend.value-filter'] = $container->share(function() {
|
$container['leaflet.frontend.value-filter'] = $container->share(function($container) {
|
||||||
return new ValueFilter(new InsertTagReplacer());
|
return new ValueFilter($container['toolkit.insert-tag-replacer']);
|
||||||
});
|
});
|
||||||
|
|
||||||
$container['leaflet.service-container'] = $container->share(function($container) {
|
$container['leaflet.service-container'] = $container->share(function($container) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Frontend;
|
namespace Netzmacht\Contao\Leaflet\Frontend;
|
||||||
|
|
||||||
use Netzmacht\Contao\Leaflet\Frontend\Helper\InsertTagReplacer;
|
use Netzmacht\Contao\Toolkit\InsertTag\Replacer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ValueFilter is a service class which can be used to filter values before passing them to an definition object.
|
* Class ValueFilter is a service class which can be used to filter values before passing them to an definition object.
|
||||||
@@ -21,16 +21,16 @@ use Netzmacht\Contao\Leaflet\Frontend\Helper\InsertTagReplacer;
|
|||||||
class ValueFilter
|
class ValueFilter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The frontend api of Contao.
|
* The insert tag replacer.
|
||||||
*
|
*
|
||||||
* @var InsertTagReplacer
|
* @var Replacer
|
||||||
*/
|
*/
|
||||||
private $insertTagReplacer;
|
private $insertTagReplacer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct.
|
* Construct.
|
||||||
*
|
*
|
||||||
* @param InsertTagReplacer $replacer The insert tag replacer.
|
* @param Replacer $replacer The insert tag replacer.
|
||||||
*/
|
*/
|
||||||
public function __construct($replacer)
|
public function __construct($replacer)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user