Example #1
0
 /**
  * Constructor.
  *
  * @param  \Cartalyst\Alerts\Native\AlertsBootstrapper  $bootstrapper
  * @return void
  */
 public function __construct(AlertsBootstrapper $bootstrapper = null)
 {
     if ($bootstrapper === null) {
         $bootstrapper = new AlertsBootstrapper();
     }
     $this->alerts = $bootstrapper->createAlerts();
 }
Example #2
0
 /** @test */
 public function it_can_retrieve_bootstrapper_config()
 {
     $this->assertSame(['default' => 'view'], AlertsBootstrapper::getConfig());
 }