2014-07-07 15:49:44 +02:00
|
|
|
<?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.
|
2014-07-07 15:49:44 +02:00
|
|
|
*/
|
|
|
|
|
2017-06-03 11:53:57 +02:00
|
|
|
use Neos\Flow\Core\Bootstrap;
|
|
|
|
use Neos\Flow\Package\Package as BasePackage;
|
|
|
|
use Neos\Flow\Configuration\ConfigurationManager;
|
2014-07-07 15:49:44 +02:00
|
|
|
|
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)
|
|
|
|
{
|
2014-07-07 15:49:44 +02:00
|
|
|
parent::boot($bootstrap);
|
|
|
|
|
|
|
|
$dispatcher = $bootstrap->getSignalSlotDispatcher();
|
2017-06-03 11:39:59 +02:00
|
|
|
$dispatcher->connect(
|
2021-05-12 02:01:22 +02:00
|
|
|
'Neos\Flow\Configuration\ConfigurationManager',
|
|
|
|
'configurationManagerReady',
|
2017-06-03 11:39:59 +02:00
|
|
|
function (ConfigurationManager $configurationManager) {
|
|
|
|
$configurationManager->registerConfigurationType('Menu');
|
|
|
|
}
|
|
|
|
);
|
2014-07-07 15:49:44 +02:00
|
|
|
}
|
2021-05-12 02:01:22 +02:00
|
|
|
}
|