/**
* Register shopware auth resource
* create pre-dispatch hook to check backend permissions
*/
public function install() { $this->
subscribeEvent('Enlight_Bootstrap_InitResource_Auth', 'onInitResourceAuth'
);
$this->
subscribeEvent('Enlight_Controller_Action_PreDispatch', 'onPreDispatchBackend'
);
$this->
subscribeEvent('Enlight_Bootstrap_InitResource_BackendSession', 'onInitResourceBackendSession'
);
$form =
$this->
Form();
$parent =
$this->
Forms()->
findOneBy(['name' => 'Core'
]);
$form->
setParent($parent);
$form->
setLabel('Backend'
);
$form->
setElement('select', 'backendLocales',
[ 'store' => 'base.Locale',
'label' => 'Auswählbare Sprachen',
'value' =>
[1, 2
],
'required' => true,
'multiSelect' => true,
]);
$form->
setElement('interval', 'backendTimeout',
[