Documentation

CronHandler
in package

FinalYes

Table of Contents

Methods

dispatch()  : Closure
Create a callback that resolves a service from the container and calls a method.

Methods

dispatch()

Create a callback that resolves a service from the container and calls a method.

public static dispatch(ContainerInterface $container, string $serviceClass, string $method) : Closure

Usage: $cronRegistrar->addEvent( 'acme_sync_invoices', CronInterval::FiveMinutes, CronHandler::dispatch($container, InvoiceService::class, 'syncFromStripe') );

Parameters
$container : ContainerInterface
$serviceClass : string
$method : string
Return values
Closure
On this page

Search results