Skip to content

Commit 2e6308c

Browse files
committed
fixed some file extensions
1 parent 0a5ec36 commit 2e6308c

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

cookbook/configuration/external_parameters.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
How to Set External Parameters in the Service Container
55
=======================================================
66

7-
In the chapter :doc:`/cookbook/configuration/environments`, you learned how
8-
to manage your application configuration. At times, it may benefit your application
7+
In the chapter :doc:`/cookbook/configuration/environments`, you learned how
8+
to manage your application configuration. At times, it may benefit your application
99
to store certain credentials outside of your project code. Database configuration
1010
is one such example. The flexibility of the symfony service container allows
1111
you to easily do this.
@@ -38,16 +38,16 @@ the following ``VirtualHost`` configuration:
3838
3939
.. note::
4040

41-
The example above is for an Apache configuration, using the `SetEnv`_
41+
The example above is for an Apache configuration, using the `SetEnv`_
4242
directive. However, this will work for any web server which supports
4343
the setting of environment variables.
44-
44+
4545
Also, in order for your console to work (which does not use Apache),
4646
you must export these as shell variables. On a Unix system, you can run
4747
the following:
48-
48+
4949
.. code-block:: bash
50-
50+
5151
$ export SYMFONY__DATABASE__USER=user
5252
$ export SYMFONY__DATABASE__PASSWORD=secret
5353
@@ -116,18 +116,18 @@ key, and define the type as ``constant``.
116116

117117
This only works for XML configuration. If you're *not* using XML, simply
118118
import an XML file to take advantage of this functionality:
119-
119+
120120
.. code-block:: yaml
121-
122-
// app/config/config.yml
121+
122+
# app/config/config.yml
123123
imports:
124124
- { resource: parameters.xml }
125125
126126
Miscellaneous Configuration
127127
---------------------------
128128

129-
The ``imports`` directive can be used to pull in parameters stored elsewhere.
130-
Importing a PHP file gives you the flexibility to add whatever is needed
129+
The ``imports`` directive can be used to pull in parameters stored elsewhere.
130+
Importing a PHP file gives you the flexibility to add whatever is needed
131131
in the container. The following imports a file named ``parameters.php``.
132132

133133
.. configuration-block::

cookbook/configuration/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ configuration format of your choice):
7575
7676
.. code-block:: php
7777
78-
// app/config/config.yml
78+
// app/config/config.php
7979
use Symfony\Component\DependencyInjection\Definition;
8080
use Symfony\Component\DependencyInjection\Reference;
8181

cookbook/service_container/event_listener.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ How to create an Event Listener
55
===============================
66

77
Symfony has various events and hooks that can be used to trigger custom
8-
behavior in your application. Those events are thrown by the HttpKernel
9-
component and can be viewed in the :class:`Symfony\\Component\\HttpKernel\\KernelEvents` class.
8+
behavior in your application. Those events are thrown by the HttpKernel
9+
component and can be viewed in the :class:`Symfony\\Component\\HttpKernel\\KernelEvents` class.
1010

1111
To hook into an event and add your own custom logic, you have to create
1212
a service that will act as an event listener on that event. In this entry,
@@ -61,19 +61,19 @@ using a special "tag":
6161
6262
.. code-block:: xml
6363
64-
<!-- app/config/config.yml -->
64+
<!-- app/config/config.xml -->
6565
<service id="kernel.listener.your_listener_name" class="Acme\DemoBundle\Listener\AcmeExceptionListener">
6666
<tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" />
6767
</service>
6868
6969
.. code-block:: php
7070
71-
// app/config/config.yml
71+
// app/config/config.php
7272
$container
7373
->register('kernel.listener.your_listener_name', 'Acme\DemoBundle\Listener\AcmeExceptionListener')
7474
->addTag('kernel.event_listener', array('event' => 'kernel.exception', 'method' => 'onKernelException'))
7575
;
76-
76+
7777
.. note::
7878

7979
There is an additional tag option ``priority`` that is optional and defaults

0 commit comments

Comments
 (0)