<?php
namespace app\common;
final class Serve
{
    public static function push(string $action,array $data=[],int $delay=0): bool {self::deny('queue_push');return false;}
    public static function pushJump(string $action,array $data=[]): bool {self::deny('queue_jump');return false;}
    private static function deny(string $name): void {file_put_contents(getenv('PILOT_RUNTIME').'/external-private.jsonl',json_encode(['kind'=>$name])."\n",FILE_APPEND|LOCK_EX);throw new \RuntimeException('External forbidden');}
}
final class UserApi
{public function run($apiType,$params=[]): array {file_put_contents(getenv('PILOT_RUNTIME').'/external-private.jsonl',"{\"kind\":\"user_sync\"}\n",FILE_APPEND|LOCK_EX);throw new \RuntimeException('External forbidden');}}
