mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 12:03:44 +01:00
Switch to PSR-4.
This commit is contained in:
52
src/Event/InitializeDefinitionMapperEvent.php
Normal file
52
src/Event/InitializeDefinitionMapperEvent.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package contao-leaflet-maps
|
||||
* @author David Molineus <david.molineus@netzmacht.de>
|
||||
* @copyright 2014-2016 netzmacht David Molineus
|
||||
* @license LGPL 3.0
|
||||
* @filesource
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Event;
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Class InitializeDefinitionMapperEvent is emitted when the definition mapper is created.
|
||||
*
|
||||
* @package Netzmacht\Contao\Leaflet\Event
|
||||
*/
|
||||
class InitializeDefinitionMapperEvent extends Event
|
||||
{
|
||||
const NAME = 'leaflet.boot.initialize-definition-mapper';
|
||||
|
||||
/**
|
||||
* The definitino mapper.
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user