Skip to content

Commit 1252df1

Browse files
javiaceiweaverryan
authored andcommitted
Use PassConfig namespace in addCompilerPass example
1 parent 6181390 commit 1252df1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/dependency_injection/compilation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ a pass with the container to control where it goes in the order:
8080
For example, to run your custom pass after the default removal passes have been run::
8181

8282
use Symfony\Component\DependencyInjection\ContainerBuilder;
83+
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
8384

8485
$container = new ContainerBuilder();
8586
$container->addCompilerPass(new CustomCompilerPass, PassConfig::TYPE_AFTER_REMOVING);

0 commit comments

Comments
 (0)