Файл: forsoc.ru/ext/dmzx/topicauthor/event/listener.php
Строк: 45
<?php
/**
*
*
*/
namespace dmzxtopicauthorevent;
use SymfonyComponentEventDispatcherEventSubscriberInterface;
/**
* Event listener
*/
class listener implements EventSubscriberInterface
{
/**
* Assign functions defined in this class to event listeners in the core
*
* @return array
* @static
* @access public
*/
static public function getSubscribedEvents()
{
return array(
'core.user_setup' => 'load_language_on_setup',
);
}
public function load_language_on_setup($event)
{
$lang_set_ext = $event['lang_set_ext'];
$lang_set_ext[] = array(
'ext_name' => 'dmzx/topicauthor',
'lang_set' => 'lang',
);
$event['lang_set_ext'] = $lang_set_ext;
}
}