Skip to content

Commit 6dfb593

Browse files
committed
Add migration notes for Configure attribute
1 parent ef6598c commit 6dfb593

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

en/appendices/5-3-migration-guide.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ Command
7474
- ``cake server`` now supports a ``--frankenphp`` option that will start the
7575
development server with `FrankenPHP <https://frankenphp.dev/>`__.
7676

77+
Core
78+
----
79+
80+
- Added ``Configure`` container attribute to support injecting ``Configure`` values into
81+
constructor promoted properties when resolving a class. Example:
82+
.. code-block:: php
83+
84+
class InjectedService
85+
{
86+
public function __construct(
87+
#[Configure('MyService.apiKey')] protected string $apiKey,
88+
) { }
89+
}
90+
7791
Cache
7892
-----
7993

0 commit comments

Comments
 (0)