retro/lib/Listener/LoadAdditionalScriptsListener.php
Michel Roux 64361f02fe
Some checks failed
retro / xml (push) Successful in 1m21s
retro / php (push) Failing after 1m3s
retro / nodejs (push) Successful in 1m43s
retro / release (push) Has been skipped
feat: add a bunch of utils dep and add init script
2024-12-30 23:15:08 +01:00

21 lines
459 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Retro\Listener;
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Retro\AppInfo\Application;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Util;
class LoadAdditionalScriptsListener implements IEventListener
{
public function handle(Event $event): void {
if ($event instanceof LoadAdditionalScriptsEvent) {
Util::addInitScript(Application::APP_ID, 'init');
}
}
}