Revert "feature #27801 [MonologBridge] Add ProcessorInterface, enabling autoconfiguration of monolog processors (nicolas-grekas)"
This reverts commitf27c3a8584
, reversing changes made to9da045469e
.
This commit is contained in:
parent
7cb823a5b6
commit
cfc3f254e7
@ -4,7 +4,6 @@ CHANGELOG
|
|||||||
4.2.0
|
4.2.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* added `ProcessorInterface`: an optional interface to allow autoconfiguration of Monolog processors
|
|
||||||
* The methods `DebugProcessor::getLogs()`, `DebugProcessor::countErrors()`, `Logger::getLogs()`
|
* The methods `DebugProcessor::getLogs()`, `DebugProcessor::countErrors()`, `Logger::getLogs()`
|
||||||
and `Logger::countErrors()` will have a new `$request` argument in version 5.0, not defining
|
and `Logger::countErrors()` will have a new `$request` argument in version 5.0, not defining
|
||||||
it is deprecated
|
it is deprecated
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
<?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;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An optional interface to allow autoconfiguration of Monolog processors.
|
|
||||||
*
|
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
|
||||||
*/
|
|
||||||
interface ProcessorInterface
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @return array The processed records
|
|
||||||
*/
|
|
||||||
public function __invoke(array $records);
|
|
||||||
}
|
|
@ -18,7 +18,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
|
|||||||
*
|
*
|
||||||
* @author Dany Maillard <danymaillard93b@gmail.com>
|
* @author Dany Maillard <danymaillard93b@gmail.com>
|
||||||
*/
|
*/
|
||||||
class TokenProcessor implements ProcessorInterface
|
class TokenProcessor
|
||||||
{
|
{
|
||||||
private $tokenStorage;
|
private $tokenStorage;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
|
|||||||
*
|
*
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
*/
|
*/
|
||||||
class WebProcessor extends BaseWebProcessor implements EventSubscriberInterface, ProcessorInterface
|
class WebProcessor extends BaseWebProcessor implements EventSubscriberInterface
|
||||||
{
|
{
|
||||||
public function __construct(array $extraFields = null)
|
public function __construct(array $extraFields = null)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,6 @@ use Psr\Cache\CacheItemPoolInterface;
|
|||||||
use Psr\Container\ContainerInterface as PsrContainerInterface;
|
use Psr\Container\ContainerInterface as PsrContainerInterface;
|
||||||
use Psr\Log\LoggerAwareInterface;
|
use Psr\Log\LoggerAwareInterface;
|
||||||
use Symfony\Bridge\Monolog\Processor\DebugProcessor;
|
use Symfony\Bridge\Monolog\Processor\DebugProcessor;
|
||||||
use Symfony\Bridge\Monolog\Processor\ProcessorInterface;
|
|
||||||
use Symfony\Bridge\Twig\Extension\CsrfExtension;
|
use Symfony\Bridge\Twig\Extension\CsrfExtension;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader;
|
use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader;
|
||||||
@ -343,8 +342,6 @@ class FrameworkExtension extends Extension
|
|||||||
->addTag('kernel.reset', array('method' => 'reset'));
|
->addTag('kernel.reset', array('method' => 'reset'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$container->registerForAutoconfiguration(ProcessorInterface::class)
|
|
||||||
->addTag('monolog.processor');
|
|
||||||
$container->registerForAutoconfiguration(PropertyListExtractorInterface::class)
|
$container->registerForAutoconfiguration(PropertyListExtractorInterface::class)
|
||||||
->addTag('property_info.list_extractor');
|
->addTag('property_info.list_extractor');
|
||||||
$container->registerForAutoconfiguration(PropertyTypeExtractorInterface::class)
|
$container->registerForAutoconfiguration(PropertyTypeExtractorInterface::class)
|
||||||
|
Reference in New Issue
Block a user