Skip to content

Commit 0236408

Browse files
committed
Add support fo Symfony 8
1 parent 58b98dc commit 0236408

File tree

8 files changed

+16
-18
lines changed

8 files changed

+16
-18
lines changed

DependencyInjection/Compiler/AddProcessorsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class AddProcessorsPass implements CompilerPassInterface
2727
{
28-
public function process(ContainerBuilder $container)
28+
public function process(ContainerBuilder $container): void
2929
{
3030
if (!$container->hasDefinition('monolog.logger')) {
3131
return;

DependencyInjection/Compiler/AddSwiftMailerTransportPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class AddSwiftMailerTransportPass implements CompilerPassInterface
2727
{
28-
public function process(ContainerBuilder $container)
28+
public function process(ContainerBuilder $container): void
2929
{
3030
$handlers = $container->getParameter('monolog.swift_mailer.handlers');
3131

DependencyInjection/Compiler/DebugHandlerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(LoggerChannelPass $channelPass)
3636
$this->channelPass = $channelPass;
3737
}
3838

39-
public function process(ContainerBuilder $container)
39+
public function process(ContainerBuilder $container): void
4040
{
4141
if (!$container->hasDefinition('profiler')) {
4242
return;

DependencyInjection/Compiler/FixEmptyLoggerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(LoggerChannelPass $channelPass)
4040
$this->channelPass = $channelPass;
4141
}
4242

43-
public function process(ContainerBuilder $container)
43+
public function process(ContainerBuilder $container): void
4444
{
4545
$container->register('monolog.handler.null_internal', 'Monolog\Handler\NullHandler');
4646
foreach ($this->channelPass->getChannels() as $channel) {

DependencyInjection/Compiler/LoggerChannelPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LoggerChannelPass implements CompilerPassInterface
3030
{
3131
protected $channels = ['app'];
3232

33-
public function process(ContainerBuilder $container)
33+
public function process(ContainerBuilder $container): void
3434
{
3535
if (!$container->hasDefinition('monolog.logger')) {
3636
return;

DependencyInjection/MonologExtension.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MonologExtension extends Extension
5555
* @param array $configs An array of configuration settings
5656
* @param ContainerBuilder $container A ContainerBuilder instance
5757
*/
58-
public function load(array $configs, ContainerBuilder $container)
58+
public function load(array $configs, ContainerBuilder $container): void
5959
{
6060
$configuration = $this->getConfiguration($configs, $container);
6161
$config = $this->processConfiguration($configuration, $configs);
@@ -144,15 +144,13 @@ public function load(array $configs, ContainerBuilder $container)
144144

145145
/**
146146
* Returns the base path for the XSD files.
147-
*
148-
* @return string The XSD base path
149147
*/
150-
public function getXsdValidationBasePath()
148+
public function getXsdValidationBasePath(): string
151149
{
152150
return __DIR__.'/../Resources/config/schema';
153151
}
154152

155-
public function getNamespace()
153+
public function getNamespace(): string
156154
{
157155
return 'http://symfony.com/schema/dic/monolog';
158156
}

MonologBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MonologBundle extends Bundle
3131
/**
3232
* @return void
3333
*/
34-
public function build(ContainerBuilder $container)
34+
public function build(ContainerBuilder $container): void
3535
{
3636
parent::build($container);
3737

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
],
1818
"require": {
1919
"php": ">=7.2.5",
20-
"symfony/monolog-bridge": "^5.4 || ^6.0 || ^7.0",
21-
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
22-
"symfony/config": "^5.4 || ^6.0 || ^7.0",
23-
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
20+
"symfony/monolog-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
21+
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0",
22+
"symfony/config": "^5.4 || ^6.0 || ^7.0 || ^8.0",
23+
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0 || ^8.0",
2424
"monolog/monolog": "^1.25.1 || ^2.0 || ^3.0"
2525
},
2626
"require-dev": {
27-
"symfony/yaml": "^5.4 || ^6.0 || ^7.0",
28-
"symfony/console": "^5.4 || ^6.0 || ^7.0",
29-
"symfony/phpunit-bridge": "^7.1"
27+
"symfony/yaml": "^5.4 || ^6.0 || ^7.0 || ^8.0",
28+
"symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0",
29+
"symfony/phpunit-bridge": "^7.1 || ^8.0"
3030
},
3131
"autoload": {
3232
"psr-4": { "Symfony\\Bundle\\MonologBundle\\": "" },

0 commit comments

Comments
 (0)