public function __construct($config = [])
{
$config = Collection::fromConfig($config, [], ['token']);
parent::__construct('', $config);
$description = ServiceDescription::factory(__DIR__ . '/Resources/slack_api.json');
$this->setDescription($description);
$this->getEventDispatcher()->addListener('command.before_prepare', function (Event $event) use($config) {
$event['command']['token'] = $config['token'];
});
}