コード例 #1
0
ファイル: Sentinel.php プロジェクト: gitfreengers/larus
 /**
  * Constructor.
  *
  * @param  \Cartalyst\Sentinel\Native\SentinelBootstrapper  $bootstrapper
  * @return void
  */
 public function __construct(SentinelBootstrapper $bootstrapper = null)
 {
     if ($bootstrapper === null) {
         $bootstrapper = new SentinelBootstrapper();
     }
     $this->sentinel = $bootstrapper->createSentinel();
 }
コード例 #2
0
 public function testInstantiate()
 {
     $bootstrapper = new SentinelBootstrapper();
     $sentinel = $bootstrapper->createSentinel();
     $this->assertInstanceOf('Cartalyst\\Sentinel\\Sentinel', $sentinel);
 }