Files
fewo-stommer/app/Process/Tester/SandboxChannelRegistry.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.");
}
}