Skip to content

Commit 642672b

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [#14422] Minor change in sentence Recommending symfony/apache-pack when installing the project on a sha… Adding information to the monolog autowire documentation that specifies that the channel must be defined
2 parents d33b779 + fbb9a67 commit 642672b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

deployment.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ setup:
195195
* Add/edit CRON jobs
196196
* :ref:`Building and minifying your assets <how-do-i-deploy-my-encore-assets>` with Webpack Encore
197197
* Pushing assets to a CDN
198+
* On a shared hosting platform using the Apache web server, you may need to
199+
install the :ref:`symfony/apache-pack package <web-server-apache-mod-php>`
198200
* ...
199201

200202
Application Lifecycle: Continuous Integration, QA, etc.

logging/channels_handlers.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,11 @@ How to Autowire Logger Channels
182182

183183
Starting from `MonologBundle`_ 3.5 you can autowire different Monolog channels
184184
by type-hinting your service arguments with the following syntax:
185-
``Psr\Log\LoggerInterface $<channel>Logger``. For example, to inject the service
186-
related to the ``app`` logger channel use this:
185+
``Psr\Log\LoggerInterface $<channel>Logger``. The ``<channel>`` must have been
186+
:ref:`predefined in your Monolog configuration <monolog-channels-config>`.
187+
188+
For example to inject the service related to the ``app`` logger channel,
189+
change your constructor like this:
187190

188191
.. code-block:: diff
189192

0 commit comments

Comments
 (0)