Contao Maker Bundle
This is an extension of the Symfony Maker Bundle, providing autoloading in the Contao Managed Edition as well as additional commands specific to a Contao installation.
composer require --dev inspiredminds/contao-maker-bundle
See the Symfony Maker Bundle documentation on how to use the commands, how to list all commands and how to display help text for each command.
The following is a list of Contao Managed Edition specific commands, that are introduced in this bundle.
In order to be able to use commands, services, event listeners etc. in your app under the
src/ folder, you need load these services in your app config. This command generates or updates the the following files in order to use autowiring for your app:
Note: since the Contao Managed Edition still uses the old Symfony structure, the command still generates the config files under
app/config/ rather than just
This generates an
App\ContaoManager\Plugin class. It will ask you whether you want load a bundle or load routes (the latter is necessary for Contao 4.4).