23 lines
562 B
PHP
23 lines
562 B
PHP
<?php
|
|
|
|
namespace App\Process\Tester;
|
|
|
|
use App\Channels\ChannelRegistry;
|
|
use App\Channels\Contracts\ChannelConnector;
|
|
|
|
/**
|
|
* The connectors of a tester run: none reaches a portal. A scenario delivers portal data as events of its own.
|
|
*/
|
|
final class SandboxChannelRegistry extends ChannelRegistry
|
|
{
|
|
public function connectors(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function resolve(string $key): ChannelConnector
|
|
{
|
|
throw SandboxViolation::record('connector', "Portalanbindung [{$key}] ist im Prozess-Tester nicht erlaubt.");
|
|
}
|
|
}
|