v.0.1
This commit is contained in:
		
							
								
								
									
										55
									
								
								vendor/illuminate/contracts/Bus/Dispatcher.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								vendor/illuminate/contracts/Bus/Dispatcher.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,55 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Illuminate\Contracts\Bus;
 | 
			
		||||
 | 
			
		||||
interface Dispatcher
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Dispatch a command to its appropriate handler.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed  $command
 | 
			
		||||
     * @return mixed
 | 
			
		||||
     */
 | 
			
		||||
    public function dispatch($command);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Dispatch a command to its appropriate handler in the current process.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed  $command
 | 
			
		||||
     * @param  mixed  $handler
 | 
			
		||||
     * @return mixed
 | 
			
		||||
     */
 | 
			
		||||
    public function dispatchNow($command, $handler = null);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Determine if the given command has a handler.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed  $command
 | 
			
		||||
     * @return bool
 | 
			
		||||
     */
 | 
			
		||||
    public function hasCommandHandler($command);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Retrieve the handler for a command.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed  $command
 | 
			
		||||
     * @return bool|mixed
 | 
			
		||||
     */
 | 
			
		||||
    public function getCommandHandler($command);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Set the pipes commands should be piped through before dispatching.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  array  $pipes
 | 
			
		||||
     * @return $this
 | 
			
		||||
     */
 | 
			
		||||
    public function pipeThrough(array $pipes);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Map a command to a handler.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  array  $map
 | 
			
		||||
     * @return $this
 | 
			
		||||
     */
 | 
			
		||||
    public function map(array $map);
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										14
									
								
								vendor/illuminate/contracts/Bus/QueueingDispatcher.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								vendor/illuminate/contracts/Bus/QueueingDispatcher.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Illuminate\Contracts\Bus;
 | 
			
		||||
 | 
			
		||||
interface QueueingDispatcher extends Dispatcher
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Dispatch a command to its appropriate handler behind a queue.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed  $command
 | 
			
		||||
     * @return mixed
 | 
			
		||||
     */
 | 
			
		||||
    public function dispatchToQueue($command);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user