Skip to content

Add var/tmp / $kernel->getTmpDir() #23354

@nicolas-grekas

Description

@nicolas-grekas
Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? yes
Symfony version 3.4

We did a lot of progress towards supporting read-only filesystems for Symfony app.
We managed to have the var/cache/ folder used almost only for build time artifacts.
I think we should do the last step and define the var/cache/ folder as the one used to store build time artifacts only.
There is at least one blocker: the cache pools, which need runtime write access.
Thus, I propose we add a new "tmp" folder, with a related $kernel->getTmpDir() method, defined as OK for storing runtime (and build time of course, for warmups) data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HttpKernelRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions