Rework filter handling to overcome static map identifier setting.

This commit is contained in:
David Molineus
2017-10-11 14:27:37 +02:00
parent abaf24821f
commit bf0fb35b21
35 changed files with 331 additions and 252 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
namespace Netzmacht\Contao\Leaflet\Mapper;
use Netzmacht\Contao\Leaflet\Filter\Filter;
use Netzmacht\Contao\Leaflet\Request\Request;
/**
* Class AbstractTypeMapper is the base mapper for tables containing different types of definitins.
@@ -31,7 +31,7 @@ abstract class AbstractTypeMapper extends AbstractMapper
/**
* {@inheritdoc}
*/
public function match($model, Filter $filter = null)
public function match($model, Request $request = null)
{
return parent::match($model) && $model->type === static::$type;
}