Skip to content

Commit d3d5a44

Browse files
committed
minor #20665 [DependencyInjection] Compiler pass bundle example does not implement CompilerPassInterface (jennevdmeer)
This PR was merged into the 6.4 branch. Discussion ---------- [DependencyInjection] Compiler pass bundle example does not implement `CompilerPassInterface` Not much more to add. https://github.com/symfony/symfony-docs/blob/8b5773b8a66330cc6ddba546e5aabfc5d7645d51/service_container/compiler_passes.rst?plain=1#L70-L86 It adds the import/implements to this part. Commits ------- e1faee9 Bundle example does not implement `CompilerPassInterface`
2 parents 87e350d + e1faee9 commit d3d5a44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service_container/compiler_passes.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ bundle class::
7777
namespace App\MyBundle;
7878

7979
use App\DependencyInjection\Compiler\CustomPass;
80+
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
8081
use Symfony\Component\DependencyInjection\ContainerBuilder;
8182
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
8283

83-
class MyBundle extends AbstractBundle
84+
class MyBundle extends AbstractBundle implements CompilerPassInterface
8485
{
8586
public function process(ContainerBuilder $container): void
8687
{

0 commit comments

Comments
 (0)