File tree 2 files changed +9
-6
lines changed 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ Defining Event Listeners with PHP Attributes
149
149
150
150
An alternative way to define an event listener is to use the
151
151
:class: `Symfony\\ Component\\ EventDispatcher\\ Attribute\\ AsEventListener `
152
- PHP attribute. This allows to configure the listener inside its class, without
152
+ PHP attribute. This allows you to configure the listener inside its class, without
153
153
having to add any configuration in external files::
154
154
155
155
namespace App\EventListener;
Original file line number Diff line number Diff line change @@ -192,11 +192,14 @@ directive to pass requests for PHP files to PHP FPM:
192
192
193
193
.. note ::
194
194
195
- If you are doing some quick tests with Apache, you can also run
196
- ``composer require symfony/apache-pack ``. This package creates an ``.htaccess ``
197
- file in the ``public/ `` directory with the necessary rewrite rules needed to serve
198
- the Symfony application. However, in production, it's recommended to move these
199
- rules to the main Apache configuration file (as shown above) to improve performance.
195
+ If you're running some quick tests with Apache, you can run
196
+ ``composer require symfony/apache-pack `` to create an ``.htaccess `` file in
197
+ the ``public/ `` directory with the rewrite rules needed to serve the Symfony
198
+ application. Make sure Apache's ``AllowOverride `` setting is set to ``All ``
199
+ for that directory; otherwise, the ``.htaccess `` file will be ignored.
200
+
201
+ In production, however, it's recommended to move these rules to the main
202
+ Apache configuration file (as shown above) to improve performance.
200
203
201
204
Caddy
202
205
-----
You can’t perform that action at this time.
0 commit comments