Skip to content

Commit 35a520d

Browse files
committed
[#6090] some small tweaks
1 parent bcc1cc4 commit 35a520d

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

cookbook/profiler/storage.rst

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

7-
In Symfony versions previous to 3.0, profiles could be stored in files, databases,
7+
In Symfony versions prior to 3.0, profiles could be stored in files, databases,
88
services like Redis and Memcache, etc. Starting from Symfony 3.0, the only storage
99
mechanism with built-in support is the filesystem.
1010

1111
By default the profile stores the collected data in the ``%kernel.cache_dir%/profiler/``
1212
directory. If you want to use another location to store the profiles, define the
1313
``dsn`` option of the ``framework.profiler``:
1414

15-
.. code-block:: yaml
15+
.. configuration-block::
1616

17-
# app/config/config.yml
18-
framework:
19-
profiler:
20-
dsn: 'file:/tmp/symfony/profiler'
17+
.. code-block:: yaml
18+
19+
# app/config/config.yml
20+
framework:
21+
profiler:
22+
dsn: 'file:/tmp/symfony/profiler'
23+
24+
.. code-block:: xml
25+
26+
<!-- app/config/config.xml -->
27+
<?xml version="1.0" encoding="UTF-8" ?>
28+
<container xmlns="http://symfony.com/schema/dic/services"
29+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
30+
xmlns:framework="http://symfony.com/schema/dic/symfony"
31+
xsi:schemaLocation="http://symfony.com/schema/dic/services
32+
http://symfony.com/schema/dic/services/services-1.0.xsd
33+
http://symfony.com/schema/dic/symfony
34+
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"
35+
>
36+
<framework:config>
37+
<framework:profiler dsn="file:/tmp/symfony/profiler" />
38+
</framework:config>
39+
</container>
40+
41+
.. code-block:: php
42+
43+
// app/config/config.php
44+
45+
// ...
46+
$container->loadFromExtension('framework', array(
47+
'profiler' => array(
48+
'dsn' => 'file:/tmp/symfony/profiler',
49+
),
50+
));
2151
2252
You can also create your own profile storage service implementing the
2353
:class:``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` and

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy