File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1010class ContainerCommandLoader implements CommandLoaderInterface
1111{
1212
13- private Container $ container ;
14-
15- /** @var array<string> */
16- private array $ commandMap ;
17-
1813 /**
1914 * @param array<string> $commandMap
2015 */
21- public function __construct (Container $ container , array $ commandMap )
16+ public function __construct (
17+ private readonly Container $ container ,
18+ private readonly array $ commandMap ,
19+ )
2220 {
23- $ this ->container = $ container ;
24- $ this ->commandMap = $ commandMap ;
2521 }
2622
2723 public function get (string $ name ): Command
Original file line number Diff line number Diff line change 99class ConsoleRequestFactory extends RequestFactory
1010{
1111
12- private string $ url ;
13-
14- public function __construct ( string $ url )
12+ public function __construct (
13+ private readonly string $ url ,
14+ )
1515 {
16- $ this ->url = $ url ;
1716 }
1817
1918 public function fromGlobals (): Request
You can’t perform that action at this time.
0 commit comments