mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 20:43:52 +01:00
Register hook as tagged service.
This commit is contained in:
@@ -100,4 +100,5 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
- '@netzmacht.contao_leaflet.libraries'
|
- '@netzmacht.contao_leaflet.libraries'
|
||||||
- '@netzmacht.contao_leaflet.definition.builder'
|
- '@netzmacht.contao_leaflet.definition.builder'
|
||||||
|
tags:
|
||||||
|
- { name: 'contao.hook', hook: 'initializeSystem', method: 'onInitializeSystem' }
|
||||||
|
|||||||
@@ -65,12 +65,3 @@ $GLOBALS['TL_MODELS']['tl_leaflet_marker'] = \Netzmacht\Contao\Leaflet\Model\Ma
|
|||||||
$GLOBALS['TL_MODELS']['tl_leaflet_popup'] = \Netzmacht\Contao\Leaflet\Model\PopupModel::class;
|
$GLOBALS['TL_MODELS']['tl_leaflet_popup'] = \Netzmacht\Contao\Leaflet\Model\PopupModel::class;
|
||||||
$GLOBALS['TL_MODELS']['tl_leaflet_style'] = \Netzmacht\Contao\Leaflet\Model\StyleModel::class;
|
$GLOBALS['TL_MODELS']['tl_leaflet_style'] = \Netzmacht\Contao\Leaflet\Model\StyleModel::class;
|
||||||
$GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\VectorModel::class;
|
$GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\VectorModel::class;
|
||||||
|
|
||||||
/*
|
|
||||||
* Hooks.
|
|
||||||
*/
|
|
||||||
|
|
||||||
$GLOBALS['TL_HOOKS']['initializeSystem'][] = [
|
|
||||||
'netzmacht.contao_leaflet.listeners.register_libraries',
|
|
||||||
'onInitializeSystem',
|
|
||||||
];
|
|
||||||
|
|||||||
Reference in New Issue
Block a user