Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG][DependencyInjection] Logger service has a construct error since #10619 #10626

Copy link
Copy link
Closed
@francoispluchino

Description

@francoispluchino
Issue body actions

Since the PR #10619, An error of type hinting occurs during the construction of the prototype service 'monolog.logger':

ContextErrorException: Catchable Fatal Error: Argument 2 passed to Monolog\Logger::__construct() must be of the type array, string given, called in .../project/app/cache/dev/appDevDebugProjectContainer.php 

In the appDevDebugProjectContainer.php file, the getLoggerService method has in her first line:

$this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('', 'app');

So it should be like this:

$this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app');

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.