File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
55## [ Unreleased] [ unreleased ]
66### Changed
77* update minimum PHP to version 8.2 (currently still supported version) + update league/fractal library [ BC]
8+ * change Inject from PHPDoc format to native PHP attribute
89
910## 3.2.0
1011
Original file line number Diff line number Diff line change 77use Nette \Application \IPresenter ;
88use Nette \Application \IResponse ;
99use Nette \Application \Request ;
10+ use Nette \DI \Attributes \Inject ;
1011use Nette \DI \Container ;
1112use Nette \Http \Response ;
1213use Throwable ;
@@ -27,20 +28,20 @@ final class ApiPresenter implements IPresenter
2728
2829 private const HTTP_PORT = 80 ;
2930
30- /** @var ApiDecider @inject */
31- public $ apiDecider ;
31+ #[Inject]
32+ public ApiDecider $ apiDecider ;
3233
33- /** @var Response @inject */
34- public $ response ;
34+ #[Inject]
35+ public Response $ response ;
3536
36- /** @var Container @inject */
37- public $ context ;
37+ #[Inject]
38+ public Container $ context ;
3839
39- /** @var ConfiguratorInterface @inject */
40- public $ outputConfigurator ;
40+ #[Inject]
41+ public ConfiguratorInterface $ outputConfigurator ;
4142
42- /** @var ErrorHandlerInterface @inject */
43- public $ errorHandler ;
43+ #[Inject]
44+ public ErrorHandlerInterface $ errorHandler ;
4445
4546 /**
4647 * CORS header settings
You can’t perform that action at this time.
0 commit comments