Skip to content

Cannot instantiate abstract class Zend\Diactoros\ServerRequestFactory in a hybrid application on v4 #498

Closed
@alex-pravdin-sn

Description

@alex-pravdin-sn

Environment

Symfony-sentry version 4.1.1
PHP 8
Symfony 4 + Zend 2-3 (an application in the migration process)

Steps to Reproduce

After the migration to v4, I started getting the following exception during my application startup:

Cannot instantiate abstract class Zend\Diactoros\ServerRequestFactory

While this class exists, it is never used. Some old business logic still use Zend but the application is Symfony-first. That mean Symfony app is loaded always and then some Zend stuff may be executed if needed.

I didn't have this exception on the v3. How to fix it?

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