Skip to content

Commit 9baf482

Browse files
committed
Add migration notes for Configure attribute
1 parent ef6598c commit 9baf482

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ 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+
83+
.. code-block:: php
84+
85+
class InjectedService
86+
{
87+
public function __construct(
88+
#[Configure('MyService.apiKey')] protected string $apiKey,
89+
) { }
90+
}
91+
7792
Cache
7893
-----
7994

0 commit comments

Comments
 (0)