@@ -157,6 +157,9 @@ |
||
| 157 | 157 | $questionHelper->writeGeneratorSummary($output, []); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param InputInterface $input |
|
| 162 | + */ |
|
| 160 | 163 | protected function createYesNoQuestion($questionHelper, $input, $channel) |
| 161 | 164 | { |
| 162 | 165 | $question = new Question( |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use IrishDan\NotificationBundle\DependencyInjection\Factory\BroadcasterFactory; |
| 6 | 6 | use IrishDan\NotificationBundle\DependencyInjection\Factory\ChannelFactory; |
| 7 | 7 | use Symfony\Component\Config\FileLocator; |
| 8 | -use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
|
| 9 | 8 | use Symfony\Component\DependencyInjection\Definition; |
| 10 | 9 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
| 11 | 10 | use Symfony\Component\DependencyInjection\Reference; |
@@ -4,13 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use IrishDan\NotificationBundle\Adapter\MessageAdapterInterface; |
| 6 | 6 | use IrishDan\NotificationBundle\Channel\ChannelInterface; |
| 7 | -use IrishDan\NotificationBundle\Channel\EventChannel; |
|
| 8 | -use IrishDan\NotificationBundle\Event\MessageCreatedEvent; |
|
| 9 | -use IrishDan\NotificationBundle\Event\MessageDispatchedEvent; |
|
| 10 | 7 | use IrishDan\NotificationBundle\Event\NotificationReadyToFormatEvent; |
| 11 | 8 | use IrishDan\NotificationBundle\Exception\MessageDispatchException; |
| 12 | -use IrishDan\NotificationBundle\Message\MessageInterface; |
|
| 13 | -use Psr\Log\LoggerInterface; |
|
| 14 | 9 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 15 | 10 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 16 | 11 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // get the adapter name from the |
| 69 | 69 | // $adapterKey = $message->getChannel(); |
| 70 | 70 | $adapterKey = $this->channelConfigMap[$notification->getChannel()]['adapter']; |
| 71 | - $channelConfiguration = $this->channelConfigMap[$notification->getChannel()]['config']; |
|
| 71 | + $channelConfiguration = $this->channelConfigMap[$notification->getChannel()]['config']; |
|
| 72 | 72 | |
| 73 | 73 | // Get the adapter for this channel |
| 74 | 74 | // and inject it into the adapterless channel |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $command |
| 34 | 34 | ->setDescription('Creates a new doctrine entity class for use as a database notification') |
| 35 | 35 | // ->addArgument('name', InputArgument::OPTIONAL, 'The name of the notification class (e.g. <fg=yellow>NewUserNotification</>)') |
| 36 | - ->setHelp(file_get_contents(__DIR__.'/../Resources/help/MakeDatabaseNotification.txt')) |
|
| 36 | + ->setHelp(file_get_contents(__DIR__ . '/../Resources/help/MakeDatabaseNotification.txt')) |
|
| 37 | 37 | ; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $generator->generateClass( |
| 49 | 49 | $voterClassNameDetails->getFullName(), |
| 50 | - __DIR__.'/../Resources/skeleton/notification/DatabaseNotification.tpl.php', |
|
| 50 | + __DIR__ . '/../Resources/skeleton/notification/DatabaseNotification.tpl.php', |
|
| 51 | 51 | [] |
| 52 | 52 | ); |
| 53 | 53 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $command |
| 35 | 35 | ->setDescription('Creates a new notification class') |
| 36 | 36 | ->addArgument('name', InputArgument::OPTIONAL, 'The name of the notification class (e.g. <fg=yellow>NewUserNotification</>)') |
| 37 | - ->setHelp(file_get_contents(__DIR__.'/../Resources/help/MakeNotification.txt')) |
|
| 37 | + ->setHelp(file_get_contents(__DIR__ . '/../Resources/help/MakeNotification.txt')) |
|
| 38 | 38 | ; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | $generator->generateClass( |
| 59 | 59 | $voterClassNameDetails->getFullName(), |
| 60 | - __DIR__.'/../Resources/skeleton/notification/Notification.tpl.php', |
|
| 60 | + __DIR__ . '/../Resources/skeleton/notification/Notification.tpl.php', |
|
| 61 | 61 | [] |
| 62 | 62 | ); |
| 63 | 63 | |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function build(ContainerBuilder $container) |
| 13 | 13 | { |
| 14 | - $container->addCompilerPass(new AdapterPass(),PassConfig::TYPE_BEFORE_OPTIMIZATION, 10); |
|
| 14 | + $container->addCompilerPass(new AdapterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10); |
|
| 15 | 15 | } |
| 16 | 16 | } |