Skip to content

Commit bcc5634

Browse files
committed
Finished the rewording of the "profiler storage" article
1 parent 32a63d8 commit bcc5634

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Diff for: cookbook/profiler/storage.rst

+18-3
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)