Rework validator callbacks to a listener service.

This commit is contained in:
David Molineus
2017-10-06 14:02:31 +02:00
parent 6c7b136c0e
commit f03ed713f3
10 changed files with 23 additions and 31 deletions

View File

@@ -177,7 +177,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
['title'],
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::PARENT_ALIAS_GENERATOR
),
\Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'),
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
),
'eval' => array(
'mandatory' => false,