PHP 클래스 Illuminate\Bus\Dispatcher

상속: implements Illuminate\Contracts\Bus\Dispatcher, implements Illuminate\Contracts\Bus\QueueingDispatcher, implements Illuminate\Contracts\Bus\HandlerResolver
파일 보기 프로젝트 열기: ctrlaltdylan/MirrorMirror 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container Illuminate\Contracts\Container\Container The container implementation.
$mapper Closure The fallback mapping Closure.
$mappings array All of the command-to-handler mappings.
$pipeline Illuminate\Pipeline\Pipeline The pipeline instance for the bus.
$pipes array The pipes to send commands through before dispatching.
$queueResolver Closure | null The queue resolver callback.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Container\Container $container, Closure $queueResolver = null ) : void Create a new command dispatcher instance.
dispatch ( mixed $command, Closure $afterResolving = null ) : mixed Dispatch a command to its appropriate handler.
dispatchFrom ( mixed $command, ArrayAccess $source, array $extras = [] ) : mixed Marshal a command and dispatch it to its appropriate handler.
dispatchFromArray ( mixed $command, array $array ) : mixed Marshal a command and dispatch it to its appropriate handler.
dispatchNow ( mixed $command, Closure $afterResolving = null ) : mixed Dispatch a command to its appropriate handler in the current process.
dispatchToQueue ( mixed $command ) : mixed Dispatch a command to its appropriate handler behind a queue.
getHandlerClass ( mixed $command ) : string Get the handler class for the given command.
getHandlerMethod ( mixed $command ) : string Get the handler method for the given command.
mapUsing ( Closure $mapper ) : void Register a fallback mapper callback.
maps ( array $commands ) : void Register command-to-handler mappings.
pipeThrough ( array $pipes ) Set the pipes through which commands should be piped before dispatching.
resolveHandler ( mixed $command ) : mixed Get the handler instance for the given command.
simpleMapping ( mixed $command, string $commandNamespace, string $handlerNamespace ) : string Map the command to a handler within a given root namespace.

보호된 메소드들

메소드 설명
commandShouldBeQueued ( mixed $command ) : boolean Determine if the given command should be queued.
getMapperSegment ( mixed $command, integer $segment ) : string Get the given segment from a given class handler using the custom mapper.
getMappingSegment ( string $className, integer $segment ) : string Get the given segment from a given class handler.
getParameterValueForCommand ( string $command, ArrayAccess $source, ReflectionParameter $parameter, array $extras = [] ) : mixed Get a parameter value for a marshaled command.
inflectSegment ( mixed $command, integer $segment ) : string Get the given handler segment for the given command.
marshal ( string $command, ArrayAccess $source, array $extras = [] ) : mixed Marshal a command from the given array accessible object.
marshalFromArray ( string $command, array $array ) : mixed Marshal a command from the given array.
pushCommandToQueue ( Illuminate\Contracts\Queue\Queue $queue, mixed $command ) : mixed Push the command onto the given queue instance.

메소드 상세

__construct() 공개 메소드

Create a new command dispatcher instance.
public __construct ( Illuminate\Contracts\Container\Container $container, Closure $queueResolver = null ) : void
$container Illuminate\Contracts\Container\Container
$queueResolver Closure
리턴 void

commandShouldBeQueued() 보호된 메소드

Determine if the given command should be queued.
protected commandShouldBeQueued ( mixed $command ) : boolean
$command mixed
리턴 boolean

dispatch() 공개 메소드

Dispatch a command to its appropriate handler.
public dispatch ( mixed $command, Closure $afterResolving = null ) : mixed
$command mixed
$afterResolving Closure
리턴 mixed

dispatchFrom() 공개 메소드

Marshal a command and dispatch it to its appropriate handler.
public dispatchFrom ( mixed $command, ArrayAccess $source, array $extras = [] ) : mixed
$command mixed
$source ArrayAccess
$extras array
리턴 mixed

dispatchFromArray() 공개 메소드

Marshal a command and dispatch it to its appropriate handler.
public dispatchFromArray ( mixed $command, array $array ) : mixed
$command mixed
$array array
리턴 mixed

dispatchNow() 공개 메소드

Dispatch a command to its appropriate handler in the current process.
public dispatchNow ( mixed $command, Closure $afterResolving = null ) : mixed
$command mixed
$afterResolving Closure
리턴 mixed

dispatchToQueue() 공개 메소드

Dispatch a command to its appropriate handler behind a queue.
public dispatchToQueue ( mixed $command ) : mixed
$command mixed
리턴 mixed

getHandlerClass() 공개 메소드

Get the handler class for the given command.
public getHandlerClass ( mixed $command ) : string
$command mixed
리턴 string

getHandlerMethod() 공개 메소드

Get the handler method for the given command.
public getHandlerMethod ( mixed $command ) : string
$command mixed
리턴 string

getMapperSegment() 보호된 메소드

Get the given segment from a given class handler using the custom mapper.
protected getMapperSegment ( mixed $command, integer $segment ) : string
$command mixed
$segment integer
리턴 string

getMappingSegment() 보호된 메소드

Get the given segment from a given class handler.
protected getMappingSegment ( string $className, integer $segment ) : string
$className string
$segment integer
리턴 string

getParameterValueForCommand() 보호된 메소드

Get a parameter value for a marshaled command.
protected getParameterValueForCommand ( string $command, ArrayAccess $source, ReflectionParameter $parameter, array $extras = [] ) : mixed
$command string
$source ArrayAccess
$parameter ReflectionParameter
$extras array
리턴 mixed

inflectSegment() 보호된 메소드

Get the given handler segment for the given command.
protected inflectSegment ( mixed $command, integer $segment ) : string
$command mixed
$segment integer
리턴 string

mapUsing() 공개 메소드

Register a fallback mapper callback.
public mapUsing ( Closure $mapper ) : void
$mapper Closure
리턴 void

maps() 공개 메소드

Register command-to-handler mappings.
public maps ( array $commands ) : void
$commands array
리턴 void

marshal() 보호된 메소드

Marshal a command from the given array accessible object.
protected marshal ( string $command, ArrayAccess $source, array $extras = [] ) : mixed
$command string
$source ArrayAccess
$extras array
리턴 mixed

marshalFromArray() 보호된 메소드

Marshal a command from the given array.
protected marshalFromArray ( string $command, array $array ) : mixed
$command string
$array array
리턴 mixed

pipeThrough() 공개 메소드

Set the pipes through which commands should be piped before dispatching.
public pipeThrough ( array $pipes )
$pipes array

pushCommandToQueue() 보호된 메소드

Push the command onto the given queue instance.
protected pushCommandToQueue ( Illuminate\Contracts\Queue\Queue $queue, mixed $command ) : mixed
$queue Illuminate\Contracts\Queue\Queue
$command mixed
리턴 mixed

resolveHandler() 공개 메소드

Get the handler instance for the given command.
public resolveHandler ( mixed $command ) : mixed
$command mixed
리턴 mixed

simpleMapping() 공개 정적인 메소드

Map the command to a handler within a given root namespace.
public static simpleMapping ( mixed $command, string $commandNamespace, string $handlerNamespace ) : string
$command mixed
$commandNamespace string
$handlerNamespace string
리턴 string

프로퍼티 상세

$container 보호되어 있는 프로퍼티

The container implementation.
protected Container,Illuminate\Contracts\Container $container
리턴 Illuminate\Contracts\Container\Container

$mapper 보호되어 있는 프로퍼티

The fallback mapping Closure.
protected Closure $mapper
리턴 Closure

$mappings 보호되어 있는 프로퍼티

All of the command-to-handler mappings.
protected array $mappings
리턴 array

$pipeline 보호되어 있는 프로퍼티

The pipeline instance for the bus.
protected Pipeline,Illuminate\Pipeline $pipeline
리턴 Illuminate\Pipeline\Pipeline

$pipes 보호되어 있는 프로퍼티

The pipes to send commands through before dispatching.
protected array $pipes
리턴 array

$queueResolver 보호되어 있는 프로퍼티

The queue resolver callback.
protected Closure|null $queueResolver
리턴 Closure | null