inspiredminds / 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.
Installs: 563
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 0
Type:contao-bundle
Requires
- php: >=7.1
- contao/core-bundle: ^4.4
- symfony/maker-bundle: ^1.0
- symfony/yaml: ^3.3 || ^4.1
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).