2014-04-18 14:20:28 +02:00
|
|
|
<?php
|
2020-03-10 11:13:10 +01:00
|
|
|
|
2022-05-02 09:56:09 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2014-04-18 14:20:28 +02:00
|
|
|
namespace DigiComp\SettingValidator;
|
|
|
|
|
2017-06-03 12:56:14 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the DigiComp.SettingValidator package.
|
|
|
|
*
|
|
|
|
* (c) digital competence
|
|
|
|
*
|
|
|
|
* This package is Open Source Software. For the full copyright and license
|
|
|
|
* information, please view the LICENSE file which was distributed with this
|
|
|
|
* source code.
|
|
|
|
*/
|
|
|
|
|
2017-03-13 17:00:13 +01:00
|
|
|
use Neos\Flow\Configuration\ConfigurationManager;
|
|
|
|
use Neos\Flow\Core\Bootstrap;
|
2020-07-22 17:22:46 +02:00
|
|
|
use Neos\Flow\Package\Package as NeosFlowPackagePackage;
|
2014-04-18 14:20:28 +02:00
|
|
|
|
|
|
|
/**
|
2017-06-03 12:56:14 +02:00
|
|
|
* Package base class of the DigiComp.SettingValidator package.
|
2014-04-18 14:20:28 +02:00
|
|
|
*/
|
2020-07-22 17:22:46 +02:00
|
|
|
class Package extends NeosFlowPackagePackage
|
2016-08-01 01:00:29 +02:00
|
|
|
{
|
2017-03-13 17:00:13 +01:00
|
|
|
/**
|
2021-10-06 15:58:48 +02:00
|
|
|
* @inheritDoc
|
2017-03-13 17:00:13 +01:00
|
|
|
*/
|
2020-07-22 17:22:46 +02:00
|
|
|
public function boot(Bootstrap $bootstrap): void
|
2016-08-01 01:00:29 +02:00
|
|
|
{
|
|
|
|
parent::boot($bootstrap);
|
2014-04-18 14:20:28 +02:00
|
|
|
|
2016-08-01 01:00:29 +02:00
|
|
|
$dispatcher = $bootstrap->getSignalSlotDispatcher();
|
2021-10-06 15:58:48 +02:00
|
|
|
|
2020-03-10 14:35:24 +01:00
|
|
|
$dispatcher->connect(
|
|
|
|
ConfigurationManager::class,
|
|
|
|
'configurationManagerReady',
|
2021-09-23 09:52:07 +02:00
|
|
|
function (ConfigurationManager $configurationManager): void {
|
2020-07-22 17:22:46 +02:00
|
|
|
$configurationManager->registerConfigurationType('Validation');
|
2016-08-01 01:00:29 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2014-04-18 14:20:28 +02:00
|
|
|
}
|