/**
  * @param Application $app
  * @param string $webhookName
  */
 public function setConfig(Application $app, $webhookName)
 {
     $config = $app->getWebhook($webhookName);
     $this->app = $app;
     $this->secret = $config['secret'];
     $this->events = $config['events'];
 }
 protected function displayAppWebhooks(Application $app, OutputInterface $output)
 {
     $output->writeln(sprintf('<info>Webhooks for application:</info> %s', $app->getApp()));
     $webhooks = $app->getWebhook();
     $this->renderWebhooks($webhooks, $output, $app->getApp());
 }