[Li Jingshan php] every day laravel-20160924| piplineserviceprovider.php

Source: Internet
Author: User

<?phpnamespace Illuminate\Pipeline;use Illuminate\Support\ServiceProvider;// namespace  like service providerclass pipelineserviceprovider extends serviceprovider{//  All this service provider   //this is a pipeline service  provider    /**     * indicates if loading  of the provider is deferred.     *      *  @var  bool     */    protected  $defer   = true;// just like a parents   // indicates if loading  of the provider is deferred.    /**      * Register the service provider.     *      *  @return &Nbsp;void     */    public function register ()      {         $this->app->singleton (              ' Illuminate\contracts\pipeline\hub ',  ' Illuminate\pipeline\hub '         );// singleton method     }//Register the service provider.    /**      * Get the services provided by the provider.      *     *  @return  array     */     public function provides ()     {         return [             ' Illuminate\contracts\pipeline\hub ',        ];// return this    }//Get  The services provided by the provider.}


This article is from the "Focus on PHP" blog, please be sure to keep this source http://jingshanls.blog.51cto.com/3357095/1829008

[Li Jingshan php] every day laravel-20160924| piplineserviceprovider.php

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.