Skip to content

Commit ec5eda0

Browse files
authored
Merge pull request #53 from daniellienert/bugfix/fix-step-definition-prefix
BUGFIX: Fix step definition prefix in Package.php
2 parents 7cb10bc + a03d76e commit ec5eda0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Classes/Package.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Flowpack\ElasticSearch\Indexer\Object\ObjectIndexer;
1515
use Flowpack\ElasticSearch\Indexer\Object\Signal\SignalEmitter;
1616
use Neos\Flow\Configuration\ConfigurationManager;
17+
use Neos\Flow\Core\Booting\Sequence;
18+
use Neos\Flow\Core\Booting\Step;
19+
use Neos\Flow\Core\Bootstrap;
1720
use Neos\Flow\Package\Package as BasePackage;
1821

1922
/**
@@ -29,25 +32,25 @@ class Package extends BasePackage
2932
/**
3033
* Invokes custom PHP code directly after the package manager has been initialized.
3134
*
32-
* @param \Neos\Flow\Core\Bootstrap $bootstrap The current bootstrap
35+
* @param Bootstrap $bootstrap The current bootstrap
3336
* @return void
3437
*/
35-
public function boot(\Neos\Flow\Core\Bootstrap $bootstrap)
38+
public function boot(Bootstrap $bootstrap)
3639
{
3740
$dispatcher = $bootstrap->getSignalSlotDispatcher();
3841
$package = $this;
39-
$dispatcher->connect(\Neos\Flow\Core\Booting\Sequence::class, 'afterInvokeStep', function (\Neos\Flow\Core\Booting\Step $step) use ($package, $bootstrap) {
40-
if ($step->getIdentifier() === 'typo3.flow:objectmanagement:runtime') {
42+
$dispatcher->connect(Sequence::class, 'afterInvokeStep', function (Step $step) use ($package, $bootstrap) {
43+
if ($step->getIdentifier() === 'neos.flow:objectmanagement:runtime') {
4144
$package->prepareRealtimeIndexing($bootstrap);
4245
}
4346
});
4447
}
4548

4649
/**
47-
* @param \Neos\Flow\Core\Bootstrap $bootstrap
50+
* @param Bootstrap $bootstrap
4851
* @return void
4952
*/
50-
public function prepareRealtimeIndexing(\Neos\Flow\Core\Bootstrap $bootstrap)
53+
public function prepareRealtimeIndexing(Bootstrap $bootstrap)
5154
{
5255
$this->configurationManager = $bootstrap->getObjectManager()->get(ConfigurationManager::class);
5356
$settings = $this->configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, $this->getPackageKey());

0 commit comments

Comments
 (0)