mining checker
This commit is contained in:
@@ -9,11 +9,14 @@ final class AppRegistry
|
||||
/** @var array<int, array<string, mixed>> */
|
||||
private array $apps;
|
||||
|
||||
public function __construct(string $configPath)
|
||||
/**
|
||||
* @param array<int, array<string, mixed>> $additionalApps
|
||||
*/
|
||||
public function __construct(string $configPath, array $additionalApps = [])
|
||||
{
|
||||
/** @var array<int, array<string, mixed>> $apps */
|
||||
$apps = require $configPath;
|
||||
$this->apps = $apps;
|
||||
$this->apps = array_values(array_merge($apps, $additionalApps));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user