Deprecate Config::getInstance() method

Dependency injection should be used instead.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-09-02 12:30:28 -03:00
parent a483c7921d
commit f7a82ce698
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 1371 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -118,6 +118,7 @@ class Config
$this->selectedServer = (new Server())->asArray();
}
/** @deprecated Use dependency injection instead. */
public static function getInstance(): self
{
if (self::$instance === null) {