composer package updates
[openemr.git] / vendor / illuminate / support / Facades / Event.php
blob11757f029d591657fe502f81029bb30c93ab91bd
1 <?php
3 namespace Illuminate\Support\Facades;
5 use Illuminate\Database\Eloquent\Model;
6 use Illuminate\Support\Testing\Fakes\EventFake;
8 /**
9 * @see \Illuminate\Events\Dispatcher
11 class Event extends Facade
13 /**
14 * Replace the bound instance with a fake.
16 * @param array|string $eventsToFake
17 * @return void
19 public static function fake($eventsToFake = [])
21 static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake));
23 Model::setEventDispatcher($fake);
26 /**
27 * Get the registered name of the component.
29 * @return string
31 protected static function getFacadeAccessor()
33 return 'events';