Cartalyst\Sentinel\Native\Facades\Sentinel::__construct PHP 메소드

__construct() 공개 메소드

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