From 3ef518018b36f7b4944dbca7e8202ed5ef19afdb Mon Sep 17 00:00:00 2001 From: keywan Date: Mon, 26 Nov 2018 21:58:47 +0100 Subject: [PATCH] register console command in compatible way --- README.md | 3 ++- composer.json | 1 + services.yaml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 services.yaml diff --git a/README.md b/README.md index 51828cd..0d556f8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ composer require oxid-community/moduleinternals ## Changelog -* 2018-11-23 1.4.1 add compatibbility code for oxrun +* 2018-11-23 1.4.2 fix compatibility with console applications by supporting new command registration via services.yml +* 2018-11-23 1.4.1 add compatibility code for oxrun * 2018-11-22 1.4.0 improve performance, added module:fix console command, fixed module controller check * 2018-11-21 1.3.0 Show blocks, case sensitive file exist checks, support legacy class names, warn when extending edition namespace, highlight modules with issues. * 2018-11-21 1.2.2 fix fixing extensions diff --git a/composer.json b/composer.json index db2d477..26473c2 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "extra": { "oxideshop": { "target-directory": "oxcom/moduleinternals", + "comment-console-commands": "warning the following line is deprecated and will be removed", "console-commands" : ["OxidCommunity\\ModuleInternals\\Command\\ModuleFixCommand"] } }, diff --git a/services.yaml b/services.yaml new file mode 100644 index 0000000..314f5ab --- /dev/null +++ b/services.yaml @@ -0,0 +1,5 @@ +services: + oxid_community.moduleinternals.module.fix.command: + class: OxidCommunity\ModuleInternals\Command\ModuleFixCommand + tags: + - { name: 'console.command' } \ No newline at end of file