Cartalyst\Sentinel\Native\Facades\Sentinel::__construct PHP Method

__construct() public method

Constructor.
public __construct ( SentinelBootstrapper $bootstrapper = null ) : void
$bootstrapper Cartalyst\Sentinel\Native\SentinelBootstrapper
return void
    public function __construct(SentinelBootstrapper $bootstrapper = null)
    {
        if ($bootstrapper === null) {
            $bootstrapper = new SentinelBootstrapper();
        }
        $this->sentinel = $bootstrapper->createSentinel();
    }