konradx3/architect-command-bundle
最新稳定版本:2.0.1
Composer 安装命令:
composer require konradx3/architect-command-bundle
包简介
Architect command bundle. Fast CTE, FMD creation.
关键字:
README 文档
README
A contao tool that allows you to quickly generate necessary files and configurations such as content elements or frontend modules.
Requirements
- PHP ^8.x
- Contao ^5.x
Installation
composer require konradx3/architect-command-bundle --dev
Usage
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.
Create custom bundle.
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
Generate content element.
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
Generate frontend module.
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
Generate controller.
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
Generate controller settings in services.yaml.
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
Generate controller settings in dca.
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/...
Generate twig template for controller.
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/...
统计信息
- 总下载量: 153
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-20