Skip to content

Commit 14b5707

Browse files
committed
document class override has to come earlier
1 parent 68f8a93 commit 14b5707

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AppBundle/AppBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
namespace AppBundle;
1313

1414
use AppBundle\DependencyInjection\Compiler\DocumentClassPass;
15+
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
1516
use Symfony\Component\DependencyInjection\ContainerBuilder;
1617
use Symfony\Component\HttpKernel\Bundle\Bundle;
1718

1819
class AppBundle extends Bundle
1920
{
2021
public function build(ContainerBuilder $container)
2122
{
22-
$container->addCompilerPass(new DocumentClassPass());
23+
$container->addCompilerPass(new DocumentClassPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
2324
}
2425
}

0 commit comments

Comments
 (0)