mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 11:33:46 +01:00
Fix broken filter factory (Close #57).
This commit is contained in:
@@ -51,7 +51,7 @@ final class FilterFactory
|
|||||||
public function create(string $filter, string $values): Filter
|
public function create(string $filter, string $values): Filter
|
||||||
{
|
{
|
||||||
if (isset($this->filters[$filter])) {
|
if (isset($this->filters[$filter])) {
|
||||||
return call_user_func([$filter, 'fromRequest'], $values);
|
return call_user_func([$this->filters[$filter], 'fromRequest'], $values);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \RuntimeException(sprintf('Creating filter failed. Unsupported filter "%s"', $filter));
|
throw new \RuntimeException(sprintf('Creating filter failed. Unsupported filter "%s"', $filter));
|
||||||
|
|||||||
Reference in New Issue
Block a user