Current Path : /home/thenclexdoctor.com/public_html/vendor/kavenegar/laravel/src/ |
Current File : /home/thenclexdoctor.com/public_html/vendor/kavenegar/laravel/src/ServiceProvider.php |
<?php namespace Kavenegar\Laravel; use RuntimeException; class ServiceProvider extends \Illuminate\Support\ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * The actual provider. * * @var \Illuminate\Support\ServiceProvider */ protected $provider; /** * Instantiate the service provider. * * @param mixed $app * @return void */ public function __construct($app) { parent::__construct($app); $this->provider = $this->getProvider(); } /** * Bootstrap the application events. * * @return void */ public function boot() { return $this->provider->boot(); } /** * Register the service provider. * * @return void */ public function register() { return $this->provider->register(); } /** * Return the service provider for the particular Laravel version. * * @return mixed */ private function getProvider() { $app = $this->app; $version = intval($app::VERSION); switch ($version) { case 4: return new ServiceProviderLaravel4($app); break; case 5: return new ServiceProviderLaravel5($app); break; default: return new ServiceProviderLaravelDefault($app); } } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['kavenegar']; } }
Sorry, this page is not available...