|
4 | 4 | Switching the Profiler Storage
|
5 | 5 | ==============================
|
6 | 6 |
|
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. |