app->bind(LocalStreamerAdapter::class, function (): LocalStreamerAdapter { return match (config('koel.streaming.method')) { 'x-sendfile' => $this->app->make(XSendFileStreamerAdapter::class), 'x-accel-redirect' => $this->app->make(XAccelRedirectStreamerAdapter::class), default => $this->app->make(PhpStreamerAdapter::class), }; }); } }