Skip to content

Commit

Permalink
Merge branch '7.2' into 7.3
Browse files Browse the repository at this point in the history
* 7.2:
  Bundle example does not implement `CompilerPassInterface`
  • Loading branch information
javiereguiluz committed Feb 19, 2025
2 parents 9d05a22 + cbc6c87 commit 83dc9d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service_container/compiler_passes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ bundle class::
namespace App\MyBundle;

use App\DependencyInjection\Compiler\CustomPass;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;

class MyBundle extends AbstractBundle
class MyBundle extends AbstractBundle implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
Expand Down

0 comments on commit 83dc9d7

Please sign in to comment.