Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Add mention to the shared cache directory#21563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
alexandre-daubois wants to merge1 commit intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromalexandre-daubois:shared-dir
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletionsconfiguration/override_dir_structure.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -118,6 +118,19 @@ named ``APP_CACHE_DIR`` whose value is the full path of the cache folder.
its own cached configuration files, and so each needs its own directory to
store those cache files.

In case you have multiple frontend servers using the same shared filesystem, you
can make use of the :method:`Symfony\\Component\\HttpKernel\\Kernel::getShareDir` method to
get a shared directory for cache and shared data. The shared directory can be set
by overriding an environment variable named ``APP_SHARE_DIR`` whose value is the full
path of the shared folder. This directory is also accessible as a container parameter
named ``%kernel.share_dir%``.

.. versionadded:: 7.4

The ``Kernel::getShareDir()`` method, the ``%kernel.share_dir`` parameter and
the support for the ``APP_SHARE_DIR`` environment variable were introduced
in Symfony 7.4.

.. _override-logs-dir:

Override the Log Directory
Expand Down
16 changes: 16 additions & 0 deletionsreference/configuration/kernel.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -347,6 +347,22 @@ servers support it, and you have to use a long-running web server like `FrankenP
This parameter stores the value of
:ref:`the framework.secret parameter <configuration-framework-secret>`.

``kernel.share_dir``
--------------------

**type**: ``string`` **default**: ``$this->getCacheDir()``

This parameter stores the absolute path of the shared cache directory of your Symfony
application. The default value is the current cache directory.

This value is also exposed via the :method:`Symfony\\Component\\HttpKernel\\Kernel::getShareDir`
method of the kernel class, which you can override to return a different value.

.. versionadded:: 7.4

The ``Kernel::getShareDir()`` method and the ``%kernel.share_dir`` parameter
were introduced in Symfony 7.4.

``kernel.trust_x_sendfile_type_header``
---------------------------------------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp