mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 06:30:29 +01:00
60 lines
1.2 KiB
PHP
60 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Xentral\Modules\Wizard;
|
|
|
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
|
|
|
final class Bootstrap
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerServices()
|
|
{
|
|
return [
|
|
'WizardService' => 'onInitWizardService',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerJavascript()
|
|
{
|
|
return [
|
|
'wizard' => [
|
|
'./classes/Modules/Wizard/www/js/wizard.js',
|
|
],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerStylesheets()
|
|
{
|
|
return [
|
|
'wizard' => [
|
|
'./classes/Modules/Wizard/www/css/wizard.css',
|
|
],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param ContainerInterface $container
|
|
*
|
|
* @return WizardService
|
|
*/
|
|
public static function onInitWizardService(ContainerInterface $container)
|
|
{
|
|
/** @var \ApplicationCore $app */
|
|
$app = $container->get('LegacyApplication');
|
|
|
|
return new WizardService(
|
|
$container->get('Database'),
|
|
$container->get('UserConfigService'),
|
|
$app->erp
|
|
);
|
|
}
|
|
}
|