Edit on GitHub
Jump to docs navigation

Extending Bolt / Bolt's BaseExtension Class

Note: You are currently reading the documentation for Bolt 4.0. Looking for the documentation for Bolt 5.2 instead?

If you're developing custom code in your project or in an extension, you're free to do it however you'd like, if you're proficient with Symfony. Regardless of that, it is often very convenient to make the 'entrypoint' of your Extension or custom code extend the Bolt\BaseExtension class.

Topic
Extension Bolt's BaseExtension class. Has some helpers and other functionality commonly used in an Extension scope
Twig Bolt's TwigAwareController class has some helper functions for rendering records, listings and finding templates.
Widget Bolt's BaseWidget class has helpers and functionality to add custom controls and elements to parts of the Bolt website, both frontend and backend.
Command Extending Symfony Console's Command class allows you to create new commands through the bin/console script.
Listener and Subscriber You can use Symfony's Listeners and Subscribers to hook into Bolt events such as when saving content or editing a user.


Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.