Skip to content

Commit 0572d4b

Browse files
committed
Document #[WithHttpStatus] and #[WithLogLevel] on interfaces.
1 parent 5a7abab commit 0572d4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/configuration/framework.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,11 @@ the ``#[WithLogLevel]`` attribute::
38063806
{
38073807
}
38083808

3809+
``#[WithHttpStatus]`` and ``#[WithLogLevel]`` attributes also work with parent
3810+
classes and (since 7.1) interfaces. To find the effective HTTP status and log
3811+
level, the framework will look on the parent hierarchy first, starting on the
3812+
immediate parent, then it will look on the interfaces.
3813+
38093814
.. _`HTTP Host header attacks`: https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
38103815
.. _`Security Advisory Blog post`: https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released#cve-2013-4752-request-gethost-poisoning
38113816
.. _`phpstorm-url-handler`: https://github.com/sanduhrs/phpstorm-url-handler

0 commit comments

Comments
 (0)