A contao tool that allows you to quickly generate necessary files and configurations such as content elements or frontend modules.
- PHP ^8.x
- Contao ^5.x
composer require konradx3/architect-command-bundle --dev
You can change and configure each generated file to suit your needs. It's just a generator
If you create a bundle, there will be a BUNDLE NAMESPACE variable in the .env file that will store your namespace. You don't have to enter it every time.
You can also create such a variable yourself, it will be passed to the Architect.
php contao-console architect:create:bundle [bundleName] [directory] [--namespace]
- [controller] - optional, CustomContaoApp or CustomContaoAppBundle, default AppBundle
- [directory] - optional, path/your/custom-bundle, default App/src/...
- [--namespace] - optional, if you need custom namespace you can type here your namespace
php contao-console architect:make:content-element [controller] [directory] [--namespace]
- [controller] - required, FooBarController
- [directory] - optional, path/your/custom-bundle, default App/src/...
- [--namespace] - optional, if you need custom namespace you can type here your namespace
php contao-console architect:make:frontend-module [controller] [directory] [--namespace]
- [controller] - required, FooBarController
- [directory] - optional, path/your/custom-bundle, default App/src/...
- [--namespace] - optional, if you need custom namespace you can type here your namespace
php contao-console architect:make:controller [controller] [type] [directory] [--namespace]
- [controller] - required, FooBarController
- [type] - optional, FMD - frontend module or CTE - content element
- [directory] - optional, path/your/custom-bundle, default App/src/...
- [--namespace] - optional, if you need custom namespace you can type here your namespace
php contao-console architect:make:controller-config-services [controller] [type] [directory] [--namespace]
- [controller] - required, FooBarController
- [type] - required, FMD - frontend module or CTE - content element
- [directory] - optional, path/your/custom-bundle, default App/src/...
- [--namespace] - optional, if you need custom namespace you can type here your namespace
php contao-console architect:make:controller-config-dca [controller] [type] [directory]
- [controller] - required, FooBarController
- [type] - required, FMD - frontend module or CTE - content element
- [directory] - optional, path/your/custom-bundle, default App/src/...
php contao-console architect:make:controller-template [controller] [type] [directory]
- [controller] - required, FooBarController
- [type] - required, FMD - frontend module or CTE - content element
- [directory] - optional, path/your/custom-bundle, default App/src/...