Skip to content

Instantly share code, notes, and snippets.

@alahtarin
Created December 28, 2017 10:23
Show Gist options
  • Save alahtarin/f46a17774e1c6502304916b892e73429 to your computer and use it in GitHub Desktop.
Save alahtarin/f46a17774e1c6502304916b892e73429 to your computer and use it in GitHub Desktop.
<?php
namespace App\Monolog\Processor;
use App\Service\RidProvider;
/**
* Class RidProcessor
*/
class RidProcessor
{
/**
* @param array $record
* @return array
*/
public function processRecord(array $record)
{
return array_merge_recursive($record, ['context' => ['rid' => RidProvider::getRid()]]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment