From 2c760a63bf6c6ddb36b08600176e16928c93bca5 Mon Sep 17 00:00:00 2001 From: Denis Zunke Date: Tue, 24 Oct 2017 18:16:40 +0200 Subject: [PATCH] Make commands lazy loadable --- Resources/config/services.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Resources/config/services.yml b/Resources/config/services.yml index a9f6292..dd4f1d8 100644 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -24,20 +24,25 @@ services: DZunke\SlackBundle\Command\BotMessagingCommand: arguments: ["@dz.slack.channels", "@event_dispatcher"] - tags: ['console.command'] + tags: + - { name: console.command, command: slack:run-bot } DZunke\SlackBundle\Command\ChangeChannelsTopicCommand: arguments: ["@dz.slack.channels"] - tags: ['console.command'] + tags: + - { name: console.command, command: slack:channels:topic } DZunke\SlackBundle\Command\DebugCommand: arguments: ["@dz.slack.client"] - tags: ['console.command'] + tags: + - { name: console.command, command: slack:debug } DZunke\SlackBundle\Command\MessageCommand: arguments: ["@dz.slack.messaging"] - tags: ['console.command'] + tags: + - { name: console.command, command: slack:message } DZunke\SlackBundle\Command\UsersCommand: arguments: ["@dz.slack.users"] - tags: ['console.command'] + tags: + - { name: console.command, command: slack:users }