Skip to content

console-application.php for Symfony 5.1? #141

@ThomasLandauer

Description

@ThomasLandauer

Since config/bootstrap.php doesn't exist anymore in Symfony 5.1 (see symfony/symfony-docs#13759), the example console-application.php at https://github.com/phpstan/phpstan-symfony#console-command-analysis doesn't work anymore.

I did it quick and dirty like so, but what's the recommended way (to also be shown in README)?:

use App\Kernel;
$kernel = new Kernel('dev', false);
return new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);

object-manager.php at https://github.com/phpstan/phpstan-doctrine#configuration is also affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions