Skip to content

Commit

Permalink
[MonologBundle] Added services for core processors
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 4, 2011
1 parent a1de67a commit d170f24
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Processor/WebProcessor.php
@@ -0,0 +1,28 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Bridge\Monolog\Processor;

use Monolog\Processor\WebProcessor as BaseWebProcessor;
use Symfony\Component\HttpFoundation\Request;

/**
* WebProcessor override to read from the HttpFoundation's Request
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class WebProcessor extends BaseWebProcessor
{
public function __construct(RequestInterface $request)
{
parent::__construct($request->server->all());
}
}

0 comments on commit d170f24

Please sign in to comment.