namespace Illuminate\events;use exception;use reflectionclass;use illuminate\support\str;use Illuminate\Container\ Container;use Illuminate\contracts\broadcasting\shouldbroadcast;use illuminate\contracts\broadcasting\ Shouldbroadcastnow;use Illuminate\contracts\events\dispatcher as Dispatchercontract;use Illuminate\Contracts\ Container\container as Containercontract;//Use namespaceClass Dispatcher implements dispatchercontract{//A Dispatcher implements Dispatcher contract/** * The IoC container instance. * * @var \illuminate\contracts\container\container * *protected$container;//The Ioc container instance./** * The registered event listeners. * * @var Array * *protected$listeners = [];//Listeners be registered/** * The wildcard listeners. * * @var Array * *protected$wildcards = [];//The wildcard listeners. Like store/** * The sorted event listeners. * * @var Array * *protected$sorted = [];//The sorted event listeners./** * The event firing stack. * * @var Array * *protected$firing = [];//the event firing stack./** * The queue resolver instance. * * @var callable * *protected$queueResolver;//The queue resolver instance.//At last, we find to instance, some listeners/** * Create A new event dispatcher instance. * * @param \illuminate\contracts\container\container|null $container * @return void *///Dispathcer is use for make it as you want Publicfunction__construct(Containercontract $container =NULL) { $ This->container = $container?:NewContainer; }//Containercontract is $contanier
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the [Li Jingshan PHP] Daily laravel-20160901| Dispatcher-1, including the aspects of the content, want to be interested in PHP tutorial friends helpful.