for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Dziki\MonologSentryBundle\Processor;
class TagAppending
{
/**
* @var string
*/
private $tag;
private $value;
public function __construct(string $tag, string $value)
$this->tag = $tag;
$this->value = $value;
}
public function __invoke(array $record)
$record['extra']['tags'][$this->tag] = $this->value;
return $record;