mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-16 04:15:17 +01:00
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @package dev
|
||
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
||
|
|
* @copyright 2014 netzmacht creative David Molineus
|
||
|
|
* @license LGPL 3.0
|
||
|
|
* @filesource
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
namespace Netzmacht\Contao\Leaflet\Event;
|
||
|
|
|
||
|
|
use Symfony\Component\EventDispatcher\Event;
|
||
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface as EventDispatcher;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* InitializeEventDispatcherEvent is emitted then the internal event dispatcher of the encoding system is initialized.
|
||
|
|
*
|
||
|
|
* @package Netzmacht\Contao\Leaflet\Event
|
||
|
|
*/
|
||
|
|
class InitializeEventDispatcherEvent extends Event
|
||
|
|
{
|
||
|
|
const NAME = 'leaflet.boot.initialize-event-dispatcher';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The event dispatcher.
|
||
|
|
*
|
||
|
|
* @var EventDispatcher
|
||
|
|
*/
|
||
|
|
private $eventDispatcher;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The event dispatcher.
|
||
|
|
*
|
||
|
|
* @param EventDispatcher $eventDispatcher The event dispatcher.
|
||
|
|
*/
|
||
|
|
public function __construct(EventDispatcher $eventDispatcher)
|
||
|
|
{
|
||
|
|
$this->eventDispatcher = $eventDispatcher;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the event dispatcher.
|
||
|
|
*
|
||
|
|
* @return EventDispatcher
|
||
|
|
*/
|
||
|
|
public function getEventDispatcher()
|
||
|
|
{
|
||
|
|
return $this->eventDispatcher;
|
||
|
|
}
|
||
|
|
}
|