DigiComp.Menu/Classes/Package.php

38 lines
993 B
PHP
Raw Normal View History

<?php
2017-06-03 11:39:59 +02:00
namespace DigiComp\Menu;
/*
* This file is part of the DigiComp.Menu 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.
*/
use TYPO3\Flow\Core\Bootstrap;
use TYPO3\Flow\Package\Package as BasePackage;
use TYPO3\Flow\Configuration\ConfigurationManager;
2017-06-03 11:39:59 +02:00
/**
* Package base class of the DigiComp.Menu package.
*
* @Flow\Scope("singleton")
*/
class Package extends BasePackage
{
2017-06-03 11:39:59 +02:00
public function boot(Bootstrap $bootstrap)
{
parent::boot($bootstrap);
$dispatcher = $bootstrap->getSignalSlotDispatcher();
2017-06-03 11:39:59 +02:00
$dispatcher->connect(
'TYPO3\Flow\Configuration\ConfigurationManager', 'configurationManagerReady',
function (ConfigurationManager $configurationManager) {
$configurationManager->registerConfigurationType('Menu');
}
);
}
2017-06-03 11:39:59 +02:00
}