DigiComp.Menu/Classes/Package.php

38 lines
952 B
PHP
Raw Permalink Normal View History

<?php
2021-05-12 02:01:22 +02:00
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.
*/
2023-02-07 16:57:50 +01:00
use Neos\Flow\Configuration\ConfigurationManager;
use Neos\Flow\Core\Bootstrap;
use Neos\Flow\Package\Package as BasePackage;
2017-06-03 11:39:59 +02:00
/**
* Package base class of the DigiComp.Menu package.
*/
class Package extends BasePackage
{
public function boot(Bootstrap $bootstrap)
{
parent::boot($bootstrap);
$dispatcher = $bootstrap->getSignalSlotDispatcher();
2017-06-03 11:39:59 +02:00
$dispatcher->connect(
ConfigurationManager::class,
2021-05-12 02:01:22 +02:00
'configurationManagerReady',
2017-06-03 11:39:59 +02:00
function (ConfigurationManager $configurationManager) {
$configurationManager->registerConfigurationType('Menu');
}
);
}
2021-05-12 02:01:22 +02:00
}