src/WordPress/Plugin.php
protected function bootstrapContainer()
  {
    $this->instance('app', $this);
    $this->instance('Illuminate\Container\Container', $this);

    $this->instance('path', $this->path());

    $this->configure('app');
    $this->configure('scout');
    $this->configure('services');
    $this->configure('session');
    $this->configure('mail');

    $this->registerContainerAliases();

    $this->bindActionsAndFilters();

    $this->register(\Illuminate\Session\SessionServiceProvider::class);
    $this->register(\FatPanda\Illuminate\WordPress\Providers\Mail\MailServiceProvider::class);
    $this->register(Providers\Session\WordPressSessionServiceProvider::class);
    $this->register(Providers\Scout\ScoutServiceProvider::class);

    $this->singleton(\Illuminate\Contracts\Console\Kernel::class, WordPressConsoleKernel::class); 
    $this->singleton(\Illuminate\Contracts\Debug\ExceptionHandler::class, WordPressExceptionHandler::class);   
  }
protected function bootstrapContainer()
  {
    $this->instance('app', $this);
    $this->instance('Illuminate\Container\Container', $this);

    $this->instance('path', $this->path());

    $this->configure('app');
    $this->configure('scout');
    $this->configure('services');
    $this->configure('session');
    $this->configure('mail');

    $this->registerContainerAliases();

    $this->bindActionsAndFilters();

    $this->register(\Illuminate\Session\SessionServiceProvider::class);
    $this->register(\FatPanda\Illuminate\WordPress\Providers\Mail\MailServiceProvider::class);
    $this->register(Providers\Session\WordPressSessionServiceProvider::class);
    $this->register(Providers\Scout\ScoutServiceProvider::class);

    $this->singleton(\Illuminate\Contracts\Console\Kernel::class, WordPressConsoleKernel::class); 
    $this->singleton(\Illuminate\Contracts\Debug\ExceptionHandler::class, WordPressExceptionHandler::class);   
  }
protected function bootstrapContainer ( ) { $ this -> instance ( 'app' , $ this ) ; $ this -> instance ( 'Illuminate\Container\Container' , $ this ) ; $ this -> instance ( 'path' , $ this -> path ( ) ) ; $ this -> configure ( 'app' ) ; $ this -> configure ( 'scout' ) ; $ this -> configure ( 'services' ) ; $ this -> configure ( 'session' ) ; $ this -> configure ( 'mail' ) ; $ this -> registerContainerAliases ( ) ; $ this -> bindActionsAndFilters ( ) ; $ this -> register ( \ Illuminate \ Session \ SessionServiceProvider :: class ) ; $ this -> register ( \ FatPanda \ Illuminate \ WordPress \ Providers \ Mail \ MailServiceProvider :: class ) ; $ this -> register ( Providers \ Session \ WordPressSessionServiceProvider :: class ) ; $ this -> register ( Providers \ Scout \ ScoutServiceProvider :: class ) ; $ this -> singleton ( \ Illuminate \ Contracts \ Console \ Kernel :: class , WordPressConsoleKernel :: class ) ; $ this -> singleton ( \ Illuminate \ Contracts \ Debug \ ExceptionHandler :: class , WordPressExceptionHandler :: class ) ; }
Bootstrap the plugin container.

@return void
Bootstrap the plugin container .