Skip to content

[FrameworkBundle] Incorrect dependency on BrowserKit  #29696

Closed
@leongersen

Description

@leongersen

Symfony version(s) affected: 2.8 - 4.2

Description
FrameworkBundle has a direct dependency on the BrowserKit component in framework-bundle/Client.php. BrowserKit is only listed as a dev-dependency. If BrowserKit happens not to be installed, autoloading fails in vendor/symfony/framework-bundle/Client.php:28.

How to reproduce

  • Have an (indirect) dependency on FrameworkBundle
  • Do not have BrowserKit installed
  • Load Client.php in FrameworkBundle

Possible Solution

  • Move BrowserKit from the require-dev to the require section

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