Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Foundation/Bus/PendingClosureDispatch.php
Строк: 15
<?php

namespace IlluminateFoundationBus;

use 
Closure;

class 
PendingClosureDispatch extends PendingDispatch
{
    
/**
     * Add a callback to be executed if the job fails.
     *
     * @param  Closure  $callback
     * @return $this
     */
    
public function catch(Closure $callback)
    {
        
$this->job->onFailure($callback);

        return 
$this;
    }
}
Онлайн: 1
Реклама