Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Handler name as constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Jan 16, 2016
1 parent 17f206a commit 211398d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DependencyInjection/MonologTracyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class MonologTracyExtension extends \Symfony\Component\HttpKernel\DependencyInje
const HANDLER_BUBBLE_PARAMETER = 'nella.monolog_tracy.blue_screen_handler.bubble';
const HANDLER_LEVEL_PARAMETER = 'nella.monolog_tracy.blue_screen_handler.level';

const HANDLER_NAME = 'tracyBlueScreen';

/**
* Steals Monolog configuration, goes through handlers and adjusts config
* of blue screen handlers.
Expand All @@ -49,7 +51,7 @@ public function prepend(ContainerBuilder $container)
}

$handlers = array_filter($config['handlers'], function (array $handler) {
return is_array($handler) && isset($handler['type']) && $handler['type'] === 'tracyBlueScreen';
return is_array($handler) && isset($handler['type']) && $handler['type'] === static::HANDLER_NAME;
});

// Create config
Expand Down

0 comments on commit 211398d

Please sign in to comment.