<?php

namespace Illuminate\Pipeline;

use Illuminate\Support\ServiceProvider;
// namespace like Service Provider
class 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 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.
}