Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 7efc133

Browse files
committed
Add factories as resource to automatically refresh cache
1 parent 7d3f05f commit 7efc133

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

src/DependencyInjection/CmfSonataAdminIntegrationExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class CmfSonataAdminIntegrationExtension extends Extension implements CompilerPa
3535
public function process(ContainerBuilder $container)
3636
{
3737
foreach ($this->factories as $factory) {
38+
$container->addObjectResource($factory);
3839
if ($factory instanceof CompilerPassInterface) {
3940
$factory->process($container);
4041
}

0 commit comments

Comments
 (0)