Skip to content

Commit 9047ce6

Browse files
committed
Make some classes final
1 parent d63071c commit 9047ce6

21 files changed

+23
-71
lines changed

src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@
2525
*
2626
* @author Tobias Schultze <http://tobion.de>
2727
* @author Grégoire Pineau <lyrixx@lyrixx.info>
28-
*
29-
* @final since Symfony 6.1
3028
*/
31-
class ConsoleFormatter implements FormatterInterface
29+
final class ConsoleFormatter implements FormatterInterface
3230
{
3331
use CompatibilityFormatter;
3432

src/Symfony/Bridge/Monolog/Formatter/VarDumperFormatter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717

1818
/**
1919
* @author Grégoire Pineau <lyrixx@lyrixx.info>
20-
*
21-
* @final since Symfony 6.1
2220
*/
23-
class VarDumperFormatter implements FormatterInterface
21+
final class VarDumperFormatter implements FormatterInterface
2422
{
2523
use CompatibilityFormatter;
2624

src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ public function isHandling(array $record): bool
7777
* This mapping can be customized with the $verbosityLevelMap constructor parameter.
7878
*
7979
* @author Tobias Schultze <http://tobion.de>
80-
*
81-
* @final since Symfony 6.1
8280
*/
83-
class ConsoleHandler extends AbstractProcessingHandler implements EventSubscriberInterface
81+
final class ConsoleHandler extends AbstractProcessingHandler implements EventSubscriberInterface
8482
{
8583
use CompatibilityHandler;
8684
use CompatibilityIsHandlingHandler;

src/Symfony/Bridge/Monolog/Handler/ElasticsearchLogstashHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
* stack is recommended.
4242
*
4343
* @author Grégoire Pineau <lyrixx@lyrixx.info>
44-
*
45-
* @final since Symfony 6.1
4644
*/
47-
class ElasticsearchLogstashHandler extends AbstractHandler
45+
final class ElasticsearchLogstashHandler extends AbstractHandler
4846
{
4947
use CompatibilityHandler;
5048

src/Symfony/Bridge/Monolog/Handler/MailerHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323

2424
/**
2525
* @author Alexander Borisov <boshurik@gmail.com>
26-
*
27-
* @final since Symfony 6.1
2826
*/
29-
class MailerHandler extends AbstractProcessingHandler
27+
final class MailerHandler extends AbstractProcessingHandler
3028
{
3129
use CompatibilityProcessingHandler;
3230

src/Symfony/Bridge/Monolog/Handler/NotifierHandler.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@
1616
use Monolog\Logger;
1717
use Monolog\LogRecord;
1818
use Symfony\Component\Notifier\Notification\Notification;
19-
use Symfony\Component\Notifier\Notifier;
2019
use Symfony\Component\Notifier\NotifierInterface;
2120

2221
/**
2322
* Uses Notifier as a log handler.
2423
*
2524
* @author Fabien Potencier <fabien@symfony.com>
26-
*
27-
* @final since Symfony 6.1
2825
*/
29-
class NotifierHandler extends AbstractHandler
26+
final class NotifierHandler extends AbstractHandler
3027
{
3128
use CompatibilityHandler;
3229

src/Symfony/Bridge/Monolog/Handler/ServerLogHandler.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
use Symfony\Bridge\Monolog\Formatter\VarDumperFormatter;
2121

2222
if (trait_exists(FormattableHandlerTrait::class)) {
23-
/**
24-
* @final since Symfony 6.1
25-
*/
26-
class ServerLogHandler extends AbstractProcessingHandler
23+
final class ServerLogHandler extends AbstractProcessingHandler
2724
{
2825
use CompatibilityHandler;
2926
use CompatibilityProcessingHandler;
@@ -35,10 +32,7 @@ protected function getDefaultFormatter(): FormatterInterface
3532
}
3633
}
3734
} else {
38-
/**
39-
* @final since Symfony 6.1
40-
*/
41-
class ServerLogHandler extends AbstractProcessingHandler
35+
final class ServerLogHandler extends AbstractProcessingHandler
4236
{
4337
use CompatibilityHandler;
4438
use CompatibilityProcessingHandler;

src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
* Adds the current console command information to the log entry.
2222
*
2323
* @author Piotr Stankowski <git@trakos.pl>
24-
*
25-
* @final since Symfony 6.1
2624
*/
27-
class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface
25+
final class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface
2826
{
2927
use CompatibilityProcessor;
3028

src/Symfony/Bridge/Monolog/Processor/SwitchUserTokenProcessor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
* Adds the original security token to the log entry.
1919
*
2020
* @author Igor Timoshenko <igor.timoshenko@i.ua>
21-
*
22-
* @final since Symfony 6.1
2321
*/
24-
class SwitchUserTokenProcessor extends AbstractTokenProcessor
22+
final class SwitchUserTokenProcessor extends AbstractTokenProcessor
2523
{
2624
protected function getKey(): string
2725
{

src/Symfony/Bridge/Monolog/Processor/TokenProcessor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
*
1919
* @author Dany Maillard <danymaillard93b@gmail.com>
2020
* @author Igor Timoshenko <igor.timoshenko@i.ua>
21-
*
22-
* @final since Symfony 6.1
2321
*/
24-
class TokenProcessor extends AbstractTokenProcessor
22+
final class TokenProcessor extends AbstractTokenProcessor
2523
{
2624
protected function getKey(): string
2725
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy