Skip to content

Fix service definition - #354

Merged
qroques merged 1 commit into
KnpLabs:masterfrom
X-Coder264:fix-service-definition
Jan 7, 2026
Merged

Fix service definition#354
qroques merged 1 commit into
KnpLabs:masterfrom
X-Coder264:fix-service-definition

Conversation

@X-Coder264

Copy link
Copy Markdown
Contributor

#350 broke the service definition while refactoring from the XML to the PHP format. The correct tag name is monolog.logger, not monolog.setLogger (https://github.com/symfony/monolog-bundle/blob/v4.0.1/src/DependencyInjection/Compiler/LoggerChannelPass.php#L41).

This then results with the following errors when building the Symfony container in my app:

In LoggerChannelPass.php line 100:

Monolog configuration error: The logging channel "snappy" assigned to the "main" handler does not exist.

In ContainerBuilder.php line 1048:

You have requested a non-existent service "monolog.logger.snappy".

@Chris53897

Copy link
Copy Markdown
Contributor

Thanks @X-Coder264
Your changes looks correct

@qroques
qroques merged commit 9501e76 into KnpLabs:master Jan 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants