Skip to content

[DependencyInjection] Preload file fatal error #44074

@ovrflo

Description

@ovrflo

Symfony version(s) affected

5.4.0-BETA2, 6.0.0-BETA2

Description

Tested beta2 with preloading and got

PHP Fatal error:  Uncaught Error: Call to a member function set() on int in var/cache/prod/App_KernelProdContainer.preload.php:13
Stack trace:
#0 config/preload.php(4): require()
#1 {main}
  thrown in var/cache/prod/App_KernelProdContainer.preload.php on line 13

It ends up including the main container class file and treating it like it returns an instance of the Container.

How to reproduce

Generate the cache with preloading. The error will be in var/cache/prod/App_KernelProdContainer.preload.php line 4.

Possible Solution

I would gladly help fix this issue, but I don't feel comfortable messing with the Dependency Injection Container.

Additional Context

No response

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