-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new functionality: configuration generator
- Loading branch information
1 parent
ba99763
commit e8da307
Showing
15 changed files
with
804 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
parameters: | ||
templates_module_generator_base_path: /fop_console/src/Resources/templates/generate_module_command/module | ||
|
||
services: | ||
fop.console.module_generator.file_generator: | ||
abstract: true | ||
class: FOP\Console\Generator\FileGenerator | ||
arguments: | ||
- '@twig' | ||
|
||
# configuration generation | ||
fop.console.module_generator.configuration.yaml_file: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\YamlFileGenerator | ||
calls: | ||
- [ setTemplateName, [ 'configuration.yml.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
- [ setFileNameModule, ['/admin/configuration.yml']] | ||
tags: | ||
- { name: fop.console.module_generator.configuration_generator } | ||
|
||
fop.console.module_generator.configuration.form_class_file: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\ClassFileGenerator | ||
calls: | ||
- [ setTemplateName, [ 'configuration_form.php.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
- [ setClassFolderName,[ 'src/Form/' ] ] | ||
- [ setFileNameModule,[ 'ConfigurationForm.php' ] ] | ||
tags: | ||
- { name: fop.console.module_generator.configuration_generator } | ||
|
||
fop.console.module_generator.configuration.text_data_class_file: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\ClassFileGenerator | ||
calls: | ||
- [ setTemplateName, [ 'text_data_configuration.php.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
- [ setClassFolderName,[ 'src/Configuration/' ] ] | ||
- [ setFileNameModule,[ 'TextDataConfiguration.php' ] ] | ||
tags: | ||
- { name: fop.console.module_generator.configuration_generator } | ||
|
||
fop.console.module_generator.configuration.text_data_provider_class_file: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\ClassFileGenerator | ||
calls: | ||
- [ setTemplateName, [ 'text_data_provider.php.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
- [ setClassFolderName,[ 'src/Provider/' ] ] | ||
- [ setFileNameModule,[ 'ConfigurationTextFormDataProvider.php' ] ] | ||
|
||
fop.console.module_generator.configuration.controller_twig_file: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\TwigFileGenerator | ||
calls: | ||
- [ setTemplateName, [ 'template_configuration.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
- [ setFileNameModule,[ 'configuration_view.html.twig' ] ] | ||
- [ setModuleFolder,[ 'views/templates/admin/controller' ] ] | ||
tags: | ||
- { name: fop.console.module_generator.configuration_generator } | ||
|
||
fop.console.module_generator.configuration.display_code_controller: | ||
public: true | ||
parent: fop.console.module_generator.file_generator | ||
class: FOP\Console\Generator\CodeDisplayGenerator | ||
calls: | ||
- [ setTemplateName, [ 'code_controller.php.twig' ] ] | ||
- [ setTemplatesBaseFolder,[ '%templates_module_generator_base_path%/configuration' ] ] | ||
tags: | ||
- { name: fop.console.module_generator.configuration_generator } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.