Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/monolog/../laravel/octane/src/Contracts
الملفات الموجودة في هذا الـ Path:
.
..
Client.php
DispatchesCoroutines.php
DispatchesTasks.php
OperationTerminated.php
ServerProcessInspector.php
ServesStaticFiles.php
StoppableClient.php
Worker.php

مشاهدة ملف: Worker.php

<?php

namespace Laravel\Octane\Contracts;

use Illuminate\Http\Request;
use Laravel\Octane\RequestContext;

interface Worker
{
    /**
     * Boot / initialize the Octane worker.
     */
    public function boot(): void;

    /**
     * Handle an incoming request and send the response to the client.
     */
    public function handle(Request $request, RequestContext $context): void;

    /**
     * Handle an incoming task.
     *
     * @param  mixed  $data
     * @return mixed
     */
    public function handleTask($data);

    /**
     * Terminate the worker.
     */
    public function terminate(): void;
}