Skip to content

Commit bc7da89

Browse files
authored
Change factory compile pass type
This change fix autowire for recent symfony versions
1 parent 8ca3d37 commit bc7da89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OverblogThriftBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Overblog\ThriftBundle;
1313

1414
use Overblog\ThriftBundle\DependencyInjection\Compiler\FactoryPass;
15+
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
1516
use Symfony\Component\DependencyInjection\ContainerBuilder;
1617
use Symfony\Component\HttpKernel\Bundle\Bundle;
1718

@@ -36,6 +37,6 @@ public function build(ContainerBuilder $container)
3637
{
3738
parent::build($container);
3839

39-
$container->addCompilerPass(new FactoryPass());
40+
$container->addCompilerPass(new FactoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
4041
}
4142
}

0 commit comments

Comments
 (0)