Skip to content

[DependencyInjection] Add possibility to avoid creating of preload.php #38334

@alexander-schranz

Description

@alexander-schranz

Symfony version(s) affected: 4.4.14 / 5.1.6

Description

With 4.4.14 / 5.1.6 symfony generate a new file in the src called .preload.php it was introduced by #38063. To allow a general configuration for hosters to preload a file. As I think its a great feature, but sadly in some setups preload is not possible, this is for example currently the state for sulu. That there still a .preload.php is generated currently its missleading devs thinking we are now supporting it, so it would be great to have an option to disable this generation.

How to reproduce

bin/console cache:clear # generate `src/preload.php`

Possible Solution

Add a container parameter to disable this behaviour, or make the path to the preload file configurable. Instead of a container parameter a $_SERVER or $_ENV var could be used.

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