public function __construct(SentinelBootstrapper $bootstrapper = null) { if ($bootstrapper === null) { $bootstrapper = new SentinelBootstrapper(); } $this->sentinel = $bootstrapper->createSentinel(); }