for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Slides\Saml2;
/**
* Class ServiceProvider
*
* @package Slides\Saml2
*/
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
* Indicates if loading of the provider is deferred.
* @var bool
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot()
$this->bootMiddleware();
$this->bootRoutes();
$this->bootPublishes();
}
* Bootstrap the routes.
protected function bootRoutes()
if($this->app['config']['saml2.useRoutes'] == true) {
include __DIR__ . '/Http/routes.php';
* Bootstrap the publishable files.
protected function bootPublishes()
$source = __DIR__ . '/../config/saml2.php';
$this->publishes([$source => config_path('saml2.php')]);
$this->mergeConfigFrom($source, 'saml2');
* Bootstrap the console commands.
protected function bootMiddleware()
$this->app['router']->aliasMiddleware('saml2.resolveIdp', \Slides\Saml2\Http\Middleware\ResolveIdp::class);