From 32a63d80bc0b117c79968db3956682d933afb8b0 Mon Sep 17 00:00:00 2001 From: Xavier Leune Date: Wed, 16 Dec 2015 11:59:29 +0100 Subject: [PATCH] ProfilerStorage configuration The ProfilerStorage other than FileProfilerStorage have been removed in this PR : https://github.com/symfony/symfony/pull/16018 --- cookbook/profiler/storage.rst | 64 ++--------------------------------- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/cookbook/profiler/storage.rst b/cookbook/profiler/storage.rst index 37463ae6fee..fc6d8e4da22 100644 --- a/cookbook/profiler/storage.rst +++ b/cookbook/profiler/storage.rst @@ -5,65 +5,5 @@ Switching the Profiler Storage ============================== By default the profile stores the collected data in files in the ``%kernel.cache_dir%/profiler/`` directory. -You can control the storage being used through the ``dsn``, ``username``, -``password`` and ``lifetime`` options. For example, the following configuration -uses MySQL as the storage for the profiler with a lifetime of one hour: - -.. configuration-block:: - - .. code-block:: yaml - - # app/config/config.yml - framework: - profiler: - dsn: 'mysql:host=localhost;dbname=%database_name%' - username: '%database_user%' - password: '%database_password%' - lifetime: 3600 - - .. code-block:: xml - - - - - - - - - - .. code-block:: php - - // app/config/config.php - - // ... - $container->loadFromExtension('framework', array( - 'profiler' => array( - 'dsn' => 'mysql:host=localhost;dbname=%database_name%', - 'username' => '%database_user', - 'password' => '%database_password%', - 'lifetime' => 3600, - ), - )); - -The :doc:`HttpKernel component ` currently -supports the following profiler storage drivers: - -* file -* sqlite -* mysql -* mongodb -* memcache -* memcached -* redis +You can control the storage by implementing the ``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` in +your own service and override the ``profiler.storage`` service.