Making the bundles installable
In Chapter 10, Creating Pimcore Bricks, we created all the assets in a single bundle to make them self-contained and portable. The opportunity to start our next Pimcore project by installing a bundle means we don't have to redo certain tasks, making this an attractive option. Anyway, there are some steps that we have done manually through the user interface that have to be replicated. Think back to the class generation in Chapter 9, Rendering Data—they were created manually, but you do not want to replicate this step in every new blog you will create. Even if you only take a few minutes creating them, there is always the risk of entering the wrong field name or making a mistake; they will transform your 5-minute task into a small nightmare.
But never fear! The Pimcore installation system lets you add a special class that can manage the installation process. Some common use cases are as follows:
- Creating or updating the class definition...