2014-04-18 14:20:28 +02:00
|
|
|
<?php
|
|
|
|
namespace DigiComp\SettingValidator;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
use TYPO3\Flow\Annotations as Flow;
|
|
|
|
use TYPO3\Flow\Configuration\ConfigurationManager;
|
2016-08-01 01:00:29 +02:00
|
|
|
use TYPO3\Flow\Core\Bootstrap;
|
2014-04-18 14:20:28 +02:00
|
|
|
use \TYPO3\Flow\Package\Package as BasePackage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Flow\Scope("prototype")
|
|
|
|
*/
|
2016-08-01 01:00:29 +02:00
|
|
|
class Package extends BasePackage
|
|
|
|
{
|
2014-04-18 14:20:28 +02:00
|
|
|
|
2016-08-01 01:00:29 +02:00
|
|
|
public function boot(Bootstrap $bootstrap)
|
|
|
|
{
|
|
|
|
parent::boot($bootstrap);
|
2014-04-18 14:20:28 +02:00
|
|
|
|
2016-08-01 01:00:29 +02:00
|
|
|
$dispatcher = $bootstrap->getSignalSlotDispatcher();
|
|
|
|
$dispatcher->connect(
|
|
|
|
'TYPO3\Flow\Configuration\ConfigurationManager',
|
|
|
|
'configurationManagerReady',
|
|
|
|
function (ConfigurationManager $configurationManager) {
|
|
|
|
$configurationManager->registerConfigurationType(
|
|
|
|
'Validation',
|
|
|
|
ConfigurationManager::CONFIGURATION_PROCESSING_TYPE_DEFAULT,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2014-04-18 14:20:28 +02:00
|
|
|
}
|