inspiredminds/contao-maker-bundle

This package is abandoned and no longer maintained. The author suggests using the contao/maker-bundle package instead.

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.

0.2.1 2019-03-13 13:56 UTC

This package is auto-updated.

Last update: 2022-01-12 15:19:46 UTC


README

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.

Installation

composer require --dev inspiredminds/contao-maker-bundle

Commands

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.

make:contao-kickstart

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:

  • composer.json
  • app/config/services.yml
  • app/config/config.yml
  • app/config/routing.yml (optional)

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 config/.

make:contao-manager-plugin

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).