Skip to content

Commit

Permalink
Do not declare class final to allow it being used as a lazy service
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteWunsch committed Jan 8, 2024
1 parent 6582c21 commit 00cc27f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Build/TreeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
use Webfactory\Bundle\NavigationBundle\Event\TreeInitializedEvent;
use Webfactory\Bundle\NavigationBundle\Tree\Tree;

final class TreeFactory implements ServiceSubscriberInterface
/**
* @final (not actually declared final to allow it being used as a lazy service)
*/
class TreeFactory implements ServiceSubscriberInterface
{
/** @var ConfigCacheFactoryInterface */
private $configCacheFactory;
Expand Down Expand Up @@ -138,6 +141,6 @@ private function getCacheFile(string $kernelCacheDirectory, RequestStack $reques
$cacheDirectory .= $mainRequest->getHttpHost().'/';
}

return $cacheDirectory.'tree.php';
return $cacheDirectory . 'tree.php';
}
}

0 comments on commit 00cc27f

Please sign in to comment.