diff --git a/Configuration/Commands.php b/Configuration/Commands.php deleted file mode 100644 index 64a89a89387a4320697f2fc17fc778833e9da317..0000000000000000000000000000000000000000 --- a/Configuration/Commands.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -return [ - 'sg_news:migrateNews' => [ - 'class' => \SGalinski\SgNews\Command\MigrateNewsCommandController::class - ] -]; diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 0df41efdfd6a800d3ac5aa316728e80a32b0b2b5..3c0cb4eb296d3f3af857a2d25f8cf085b274211c 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -1,11 +1,17 @@ services: - _defaults: - autowire: true - autoconfigure: true - public: false + _defaults: + autowire: true + autoconfigure: true + public: false - SGalinski\SgNews\: - resource: '../Classes/*' + SGalinski\SgNews\: + resource: '../Classes/*' - SGalinski\SgNews\Preview\PreviewRenderer: - public: true + SGalinski\SgNews\Preview\PreviewRenderer: + public: true + +# Commands + SGalinski\SgNews\Command\MigrateNewsCommandController: + tags: + - name: 'console.command' + command: 'sg_news:migrateNews'