26 lines
855 B
PHP
26 lines
855 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\TenantConfiguration;
|
|
|
|
use App\Support\Providers\ProviderReasonCodes;
|
|
|
|
final class DisabledExchangePowerShellCommandRunner implements ExchangePowerShellCommandRunner
|
|
{
|
|
public function run(
|
|
ExchangePowerShellCommandContract $commandContract,
|
|
ExchangePowerShellInvocationContext $context,
|
|
): ExchangePowerShellInvocationResult {
|
|
return ExchangePowerShellInvocationResult::blocked(
|
|
reasonCode: ProviderReasonCodes::ProviderBindingUnsupported,
|
|
failureCode: 'execution_blocked_runner_disabled',
|
|
message: 'Exchange PowerShell production invocation is disabled for this release.',
|
|
context: [
|
|
'runner_mode' => $context->runnerMode,
|
|
'execution_enabled' => false,
|
|
],
|
|
);
|
|
}
|
|
}
|