mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Added tests for DTOConverter
This commit is contained in:
parent
de82249d8d
commit
8ea92ef330
11 changed files with 429 additions and 11 deletions
|
@ -25,24 +25,24 @@ namespace App\Services\InfoProviderSystem;
|
|||
|
||||
use App\Services\InfoProviderSystem\Providers\InfoProviderInterface;
|
||||
|
||||
class ProviderRegistry
|
||||
/**
|
||||
* This class keeps track of all registered info providers and allows to find them by their key
|
||||
*/
|
||||
final class ProviderRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* @var InfoProviderInterface[] The info providers index by their keys
|
||||
* @psalm-var array
|
||||
* @phpstan-var array<string, InfoProviderInterface>
|
||||
*/
|
||||
private array $providers_by_name = [];
|
||||
|
||||
/**
|
||||
* @var InfoProviderInterface[] The enabled providers indexed by their keys
|
||||
* @psalm-var array
|
||||
*/
|
||||
private array $providers_active = [];
|
||||
|
||||
/**
|
||||
* @var InfoProviderInterface[] The disabled providers indexed by their keys
|
||||
* @psalm-var array
|
||||
*/
|
||||
private array $providers_disabled = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue