Use the insertTag replacer of the toolkit.

This commit is contained in:
David Molineus
2015-10-30 23:19:55 +01:00
parent eb54af9d36
commit 75cb767625
2 changed files with 6 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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)
{ {