diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 39f62c9c..e01645a0 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -160,7 +160,7 @@ * - [nickname]: defaults to Monolog * - [level]: level name or int value, defaults to DEBUG * - [bubble]: bool, defaults to true - * + * * - slack: * - token: slack api token * - channel: channel name diff --git a/DependencyInjection/MonologExtension.php b/DependencyInjection/MonologExtension.php index c3e64d05..8eaa653d 100644 --- a/DependencyInjection/MonologExtension.php +++ b/DependencyInjection/MonologExtension.php @@ -369,7 +369,6 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler } $message->setFactoryService($mailer); - if (isset($handler['content_type'])) { $message->addMethodCall('setContentType', array($handler['content_type'])); } @@ -440,7 +439,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler $handler['bubble'], )); break; - + case 'slack': $definition->setArguments(array( $handler['token'], diff --git a/Tests/DependencyInjection/Compiler/AddProcessorsPassTest.php b/Tests/DependencyInjection/Compiler/AddProcessorsPassTest.php index d920bda6..3c2f801e 100644 --- a/Tests/DependencyInjection/Compiler/AddProcessorsPassTest.php +++ b/Tests/DependencyInjection/Compiler/AddProcessorsPassTest.php @@ -12,7 +12,6 @@ namespace Symfony\Bundle\MonologBundle\Tests\DependencyInjection\Compiler; use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\AddProcessorsPass; -use Symfony\Bundle\MonologBundle\Tests\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php b/Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php index 44c3eebf..73d40c31 100644 --- a/Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php +++ b/Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php @@ -11,7 +11,6 @@ namespace Symfony\Bundle\MonologBundle\Tests\DependencyInjection\Compiler; -use Symfony\Bundle\MonologBundle\Tests\TestCase; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/Tests/DependencyInjection/DependencyInjectionTest.php b/Tests/DependencyInjection/DependencyInjectionTest.php index 56eb7f8f..9ff91746 100644 --- a/Tests/DependencyInjection/DependencyInjectionTest.php +++ b/Tests/DependencyInjection/DependencyInjectionTest.php @@ -11,8 +11,6 @@ namespace Symfony\Bundle\MonologBundle\Tests\DependencyInjection; -use Symfony\Bundle\MonologBundle\Tests\TestCase; - abstract class DependencyInjectionTest extends \PHPUnit_Framework_TestCase { /**