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

Commit35a520d

Browse files
committed
[#6090] some small tweaks
1 parentbcc1cc4 commit35a520d

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 versionsprevious to 3.0, profiles could be stored in files, databases,
7+
In Symfony versionsprior 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+
<containerxmlns="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:profilerdsn="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)

[8]ページ先頭

©2009-2025 Movatter.jp