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

Commitbcc5634

Browse files
committed
Finished the rewording of the "profiler storage" article
1 parent32a63d8 commitbcc5634

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

‎cookbook/profiler/storage.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
Switching the Profiler Storage
55
==============================
66

7-
By default the profile stores the collected data in files in the ``%kernel.cache_dir%/profiler/`` directory.
8-
You can control the storage by implementing the ``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` in
9-
your own service and override the ``profiler.storage`` service.
7+
In Symfony versions previous to 2.8, profiles could be stored in files, databases,
8+
services like Redis and Memcache, etc. Starting from Symfony 2.8, the only storage
9+
mechanism with built-in support is the filesystem.
10+
11+
By default the profile stores the collected data in the ``%kernel.cache_dir%/profiler/``
12+
directory. If you want to use another location to store the profiles, define the
13+
``dsn`` option of the ``framework.profiler``:
14+
15+
..code-block::yaml
16+
17+
# app/config/config.yml
18+
framework:
19+
profiler:
20+
dsn:'file:/tmp/symfony/profiler'
21+
22+
You can also create your own profile storage service implementing the
23+
:class:``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` and
24+
overriding the ``profiler.storage`` service.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp