2014-12-29 12:17:40 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2016-10-11 10:40:15 +02:00
|
|
|
* @package contao-leaflet-maps
|
2014-12-29 12:17:40 +01:00
|
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
2016-10-11 10:40:15 +02:00
|
|
|
* @copyright 2014-2016 netzmacht David Molineus
|
2014-12-29 12:17:40 +01:00
|
|
|
* @license LGPL 3.0
|
|
|
|
|
* @filesource
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Event;
|
|
|
|
|
|
|
|
|
|
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
|
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
|
|
|
|
|
|
|
|
/**
|
2015-01-12 19:03:29 +01:00
|
|
|
* Class InitializeDefinitionMapperEvent is emitted when the definition mapper is created.
|
2014-12-29 12:17:40 +01:00
|
|
|
*
|
|
|
|
|
* @package Netzmacht\Contao\Leaflet\Event
|
|
|
|
|
*/
|
|
|
|
|
class InitializeDefinitionMapperEvent extends Event
|
|
|
|
|
{
|
|
|
|
|
const NAME = 'leaflet.boot.initialize-definition-mapper';
|
|
|
|
|
|
|
|
|
|
/**
|
2015-01-12 19:03:29 +01:00
|
|
|
* The definitino mapper.
|
|
|
|
|
*
|
2014-12-29 12:17:40 +01:00
|
|
|
* @var DefinitionMapper
|
|
|
|
|
*/
|
|
|
|
|
private $definitionMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Construct.
|
|
|
|
|
*
|
|
|
|
|
* @param DefinitionMapper $definitionMapper The definition mapper.
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(DefinitionMapper $definitionMapper)
|
|
|
|
|
{
|
|
|
|
|
$this->definitionMapper = $definitionMapper;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the definition mapper.
|
|
|
|
|
*
|
|
|
|
|
* @return DefinitionMapper
|
|
|
|
|
*/
|
|
|
|
|
public function getDefinitionMapper()
|
|
|
|
|
{
|
|
|
|
|
return $this->definitionMapper;
|
|
|
|
|
}
|
|
|
|
|
}
|