Skip to content

Document the way to support projects deploying without the composer.json #8298

Closed
@stof

Description

@stof

See symfony/symfony#23950

In Symfony 3.3+, the kernel relies on detecting the composer.json file to detect the project dir.
If you delete the composer.json file from your deployed artifact, this logic will break. The solution in this case is to overwrite getProjectDir in your kernel (similar to the way customizing the cache dir is done btw).
this should be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions