Skip to content

Conversation

tacman
Copy link
Contributor

@tacman tacman commented Dec 4, 2023

AbstractBundle is great. I love not having to create a separate CompilerPass class.

}
}

:doc:Implement process() directly in the bundle definition by extending AbstractBundle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not add a new paragraph here but instead let the MyBundle class from the example above also implement the CompilerPassInterface and the process() method and add a comment inside this method that a bundle can be a compiler pass itself (we already mention process() in the text above).

@OskarStark
Copy link
Contributor

Would you like to finish your PR?

@javiereguiluz
Copy link
Member

I like the idea of showing the more compact way first. So, I followed @xabbuh's recommendation and created #20365 to fix this and other issues in this article.

So, let's close this PR in favor of the other one. Thanks.

javiereguiluz added a commit that referenced this pull request Nov 6, 2024
…passes (javiereguiluz)

This PR was merged into the 6.4 branch.

Discussion
----------

[DependencyInjection] Update the article about compiler passes

This is an alternative to #19210.

Commits
-------

a18cae1 [DependencyInjection] Update the article about compiler passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants