Skip to content

Commit

Permalink
Merge pull request #1 from ttreeagency/TASK-Flow-6-compat
Browse files Browse the repository at this point in the history
PackageManagerInterface deprecated in flow 6
  • Loading branch information
lcherpit authored Dec 16, 2021
2 parents dcf40d9 + b07c360 commit 8384dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Neos\Flow\Core\Bootstrap;
use Neos\Flow\Monitor\FileMonitor;
use Neos\Flow\Package\Package as BasePackage;
use Neos\Flow\Package\PackageManagerInterface;
use Neos\Flow\Package\PackageManager;
use Neos\Fusion\Core\Cache\FileMonitorListener;

class Package extends BasePackage
Expand All @@ -20,7 +20,7 @@ public function boot(Bootstrap $bootstrap)
$dispatcher->connect(Sequence::class, 'afterInvokeStep', function ($step) use ($bootstrap, $dispatcher) {
if ($step->getIdentifier() === 'neos.flow:systemfilemonitor') {
$fileMonitor = FileMonitor::createFileMonitorAtBoot('Fusion_Files', $bootstrap);
$packageManager = $bootstrap->getEarlyInstance(PackageManagerInterface::class);
$packageManager = $bootstrap->getEarlyInstance(PackageManager::class);
foreach ($packageManager->getFlowPackages() as $packageKey => $package) {
if ($packageManager->isPackageFrozen($packageKey)) {
continue;
Expand Down

0 comments on commit 8384dc5

Please sign in to comment.