File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55final class DirectDeployConfig {
66
7- public readonly CrawlConfig $ crawl_config ;
8-
97 public function __construct (
10- ?CrawlConfig $ crawl_config = null ,
8+ public readonly ?CrawlConfig $ crawl_config = new CrawlConfig () ,
119 public readonly bool $ do_detect = true ,
12- ) {
13- $ this ->crawl_config = $ crawl_config ?? new CrawlConfig ();
14- }
10+ ) {}
1511
1612 public function toArray (): array
1713 {
Original file line number Diff line number Diff line change 1010class DirectDeployer {
1111 private readonly Crawler $ crawler ;
1212 private readonly object $ deployer ;
13- public DirectDeployConfig $ config ;
1413 private readonly PostProcessor $ processor ;
1514 public bool $ ready = false ;
1615 private readonly URLDiscovery $ url_discovery ;
1716
1817 public function __construct (
19- ?DirectDeployConfig $ config = null ,
18+ public ?DirectDeployConfig $ config = new DirectDeployConfig () ,
2019 ) {
21- $ this ->config = $ config ?? new DirectDeployConfig ();
2220 $ deployer = Addons::getDeployer ();
2321
2422 if ( ! $ deployer ) {
You can’t perform that action at this time.
0 commit comments