mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-02 13:03:43 +01:00
Run composer require checker and solve issues.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Listener;
|
||||
|
||||
use Contao\Model;
|
||||
use Netzmacht\Contao\Leaflet\Event\GetHashEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
@@ -46,7 +47,7 @@ class HashSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
$data = $event->getData();
|
||||
|
||||
if ($data instanceof \Model) {
|
||||
if ($data instanceof Model) {
|
||||
$event->setHash($data->getTable() . '::' . $data->{$data->getPk()});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user