Revert "feature #27801 [MonologBridge] Add ProcessorInterface, enabling autoconfiguration of monolog processors (nicolas-grekas)"

This reverts commit f27c3a8584, reversing
changes made to 9da045469e.
This commit is contained in:
Nicolas Grekas 2018-10-12 12:11:29 -07:00
parent 7cb823a5b6
commit cfc3f254e7
5 changed files with 2 additions and 31 deletions

View File

@ -4,7 +4,6 @@ CHANGELOG
4.2.0
-----
* added `ProcessorInterface`: an optional interface to allow autoconfiguration of Monolog processors
* The methods `DebugProcessor::getLogs()`, `DebugProcessor::countErrors()`, `Logger::getLogs()`
and `Logger::countErrors()` will have a new `$request` argument in version 5.0, not defining
it is deprecated

View File

@ -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);
}

View File

@ -18,7 +18,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
*
* @author Dany Maillard <danymaillard93b@gmail.com>
*/
class TokenProcessor implements ProcessorInterface
class TokenProcessor
{
private $tokenStorage;

View File

@ -21,7 +21,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
*
* @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)
{

View File

@ -17,7 +17,6 @@ use Psr\Cache\CacheItemPoolInterface;
use Psr\Container\ContainerInterface as PsrContainerInterface;
use Psr\Log\LoggerAwareInterface;
use Symfony\Bridge\Monolog\Processor\DebugProcessor;
use Symfony\Bridge\Monolog\Processor\ProcessorInterface;
use Symfony\Bridge\Twig\Extension\CsrfExtension;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader;
@ -343,8 +342,6 @@ class FrameworkExtension extends Extension
->addTag('kernel.reset', array('method' => 'reset'));
}
$container->registerForAutoconfiguration(ProcessorInterface::class)
->addTag('monolog.processor');
$container->registerForAutoconfiguration(PropertyListExtractorInterface::class)
->addTag('property_info.list_extractor');
$container->registerForAutoconfiguration(PropertyTypeExtractorInterface::class)