Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console][ErrorHandler] Add option to disable deprecations in dev console in 4.4 #35575

Closed as not planned
@jkobus

Description

@jkobus

Description
After running any command in dev (debug=1) I get a lot of messages in stdout like:

2020-02-03T16:37:57+01:00 [info] User Deprecated: The "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" class is deprecated since Symfony 4.2, use "Symfony\Component\Console\Command\Command" with dependency injection instead.

Console screen gets a bit messy.

That's very helpful but I don't need it every time I run a console command.
Right now the only workaround is to disable debug, because the error_reporting setting is ignored.

Previously (4.2) I just used an option in framework.yaml:

framework:
    php_errors:
        log: 4096

It was enough to get rid of those deprecations.

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