mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
Added importer details endpoint
This commit is contained in:
committed by
Gregor Vostrak
parent
fe61a54c35
commit
1f79d5e50a
@@ -32,6 +32,14 @@ class ImporterProvider
|
||||
return array_keys($this->importers);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, class-string<ImporterContract>>
|
||||
*/
|
||||
public function getImporters(): array
|
||||
{
|
||||
return $this->importers;
|
||||
}
|
||||
|
||||
public function getImporter(string $type): ImporterContract
|
||||
{
|
||||
if (! array_key_exists($type, $this->importers)) {
|
||||
|
||||
Reference in New Issue
Block a user