[Li Jingshan php] every day laravel-20160901| Dispatcher-1

Source: Internet
Author: User
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.