File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ will look like this::
150150 ],
151151 ]
152152
153- Whilst you can manually manage merging the different files, it is much better
153+ While you can manually manage merging the different files, it is much better
154154to use :doc: `the Config component </components/config >` to
155155merge and validate the config values. Using the configuration processing
156156you could access the config value this way::
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Here's an example of using the workflow defined above::
7575Initialization
7676--------------
7777
78- If the property of your object is ``null `` and you want to set it with the
78+ If the marking property of your object is ``null `` and you want to set it with the
7979``initial_marking `` from the configuration, you can call the ``getMarking() ``
8080method to initialize the object property::
8181
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Use the OPcache Byte Code Cache
9898OPcache stores the compiled PHP files to avoid having to recompile them for
9999every request. There are some `byte code caches `_ available, but as of PHP
1001005.5, PHP comes with `OPcache `_ built-in. For older versions, the most widely
101- used byte code cache is ` APC `_ .
101+ used byte code cache is APC.
102102
103103.. _performance-use-preloading :
104104
@@ -398,7 +398,6 @@ Learn more
398398.. _`byte code caches` : https://en.wikipedia.org/wiki/List_of_PHP_accelerators
399399.. _`OPcache` : https://www.php.net/manual/en/book.opcache.php
400400.. _`Composer's autoloader optimization` : https://getcomposer.org/doc/articles/autoloader-optimization.md
401- .. _`APC` : https://www.php.net/manual/en/book.apc.php
402401.. _`APCu Polyfill component` : https://github.com/symfony/polyfill-apcu
403402.. _`APCu PHP functions` : https://www.php.net/manual/en/ref.apcu.php
404403.. _`cachetool` : https://github.com/gordalina/cachetool
Original file line number Diff line number Diff line change @@ -95,6 +95,14 @@ directive to pass requests for PHP files to PHP FPM:
9595 CustomLog /var/log/apache2/project_access.log combined
9696 </VirtualHost>
9797
98+ .. note ::
99+
100+ If you are doing some quick tests with Apache, you can also run
101+ ``composer require symfony/apache-pack ``. This package creates an ``.htaccess ``
102+ file in the ``public/ `` directory with the necessary rewrite rules needed to serve
103+ the Symfony application. However, in production, it's recommended to move these
104+ rules to the main Apache configuration file (as shown above) to improve performance.
105+
98106Nginx
99107-----
100108
You can’t perform that action at this time.
0 commit comments