PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.2.0
Independent Analytics – WordPress Analytics Plugin v2.2.0
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 1.19.1 1.2 1.20.0 1.21.0 1.22.0 1.22.1 1.23.0 1.23.1 1.24.0 1.24.1 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.28.1 1.28.2 1.28.3 1.29.0 1.3 1.30.0 1.30.1 1.4 1.5 1.6 1.7 1.8 1.9 2.0.0 2.0.1 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.10 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.13.1 2.13.2 2.13.5 2.13.6 2.14.0 2.14.1 2.14.2 2.14.4 2.14.6 2.14.7 2.14.8 2.14.9 2.2.0 2.2.1 2.3.1 2.3.2 2.4.2 2.4.3 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.7.1 2.7.2 2.7.3 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7
independent-analytics / vendor / illuminate / support / Facades / Event.php
independent-analytics / vendor / illuminate / support / Facades Last commit date
App.php 2 years ago Artisan.php 2 years ago Auth.php 2 years ago Blade.php 2 years ago Broadcast.php 2 years ago Bus.php 2 years ago Cache.php 2 years ago Config.php 2 years ago Cookie.php 2 years ago Crypt.php 2 years ago DB.php 2 years ago Date.php 2 years ago Event.php 2 years ago Facade.php 2 years ago File.php 2 years ago Gate.php 2 years ago Hash.php 2 years ago Http.php 2 years ago Lang.php 2 years ago Log.php 2 years ago Mail.php 2 years ago Notification.php 2 years ago ParallelTesting.php 2 years ago Password.php 2 years ago Queue.php 2 years ago RateLimiter.php 2 years ago Redirect.php 2 years ago Redis.php 2 years ago Request.php 2 years ago Response.php 2 years ago Route.php 2 years ago Schema.php 2 years ago Session.php 2 years ago Storage.php 2 years ago URL.php 2 years ago Validator.php 2 years ago View.php 2 years ago
Event.php
101 lines
1 <?php
2
3 namespace IAWP_SCOPED\Illuminate\Support\Facades;
4
5 use IAWP_SCOPED\Illuminate\Database\Eloquent\Model;
6 use IAWP_SCOPED\Illuminate\Support\Testing\Fakes\EventFake;
7 /**
8 * @method static \Closure createClassListener(string $listener, bool $wildcard = false)
9 * @method static \Closure makeListener(\Closure|string $listener, bool $wildcard = false)
10 * @method static \Illuminate\Events\Dispatcher setQueueResolver(callable $resolver)
11 * @method static array getListeners(string $eventName)
12 * @method static array|null dispatch(string|object $event, mixed $payload = [], bool $halt = false)
13 * @method static array|null until(string|object $event, mixed $payload = [])
14 * @method static bool hasListeners(string $eventName)
15 * @method static void assertDispatched(string|\Closure $event, callable|int $callback = null)
16 * @method static void assertDispatchedTimes(string $event, int $times = 1)
17 * @method static void assertNotDispatched(string|\Closure $event, callable|int $callback = null)
18 * @method static void assertNothingDispatched()
19 * @method static void assertListening(string $expectedEvent, string $expectedListener)
20 * @method static void flush(string $event)
21 * @method static void forget(string $event)
22 * @method static void forgetPushed()
23 * @method static void listen(\Closure|string|array $events, \Closure|string|array $listener = null)
24 * @method static void push(string $event, array $payload = [])
25 * @method static void subscribe(object|string $subscriber)
26 *
27 * @see \Illuminate\Events\Dispatcher
28 * @internal
29 */
30 class Event extends Facade
31 {
32 /**
33 * Replace the bound instance with a fake.
34 *
35 * @param array|string $eventsToFake
36 * @return \Illuminate\Support\Testing\Fakes\EventFake
37 */
38 public static function fake($eventsToFake = [])
39 {
40 static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake));
41 Model::setEventDispatcher($fake);
42 Cache::refreshEventDispatcher();
43 return $fake;
44 }
45 /**
46 * Replace the bound instance with a fake that fakes all events except the given events.
47 *
48 * @param string[]|string $eventsToAllow
49 * @return \Illuminate\Support\Testing\Fakes\EventFake
50 */
51 public static function fakeExcept($eventsToAllow)
52 {
53 return static::fake([function ($eventName) use($eventsToAllow) {
54 return !\in_array($eventName, (array) $eventsToAllow);
55 }]);
56 }
57 /**
58 * Replace the bound instance with a fake during the given callable's execution.
59 *
60 * @param callable $callable
61 * @param array $eventsToFake
62 * @return mixed
63 */
64 public static function fakeFor(callable $callable, array $eventsToFake = [])
65 {
66 $originalDispatcher = static::getFacadeRoot();
67 static::fake($eventsToFake);
68 return tap($callable(), function () use($originalDispatcher) {
69 static::swap($originalDispatcher);
70 Model::setEventDispatcher($originalDispatcher);
71 Cache::refreshEventDispatcher();
72 });
73 }
74 /**
75 * Replace the bound instance with a fake during the given callable's execution.
76 *
77 * @param callable $callable
78 * @param array $eventsToAllow
79 * @return mixed
80 */
81 public static function fakeExceptFor(callable $callable, array $eventsToAllow = [])
82 {
83 $originalDispatcher = static::getFacadeRoot();
84 static::fakeExcept($eventsToAllow);
85 return tap($callable(), function () use($originalDispatcher) {
86 static::swap($originalDispatcher);
87 Model::setEventDispatcher($originalDispatcher);
88 Cache::refreshEventDispatcher();
89 });
90 }
91 /**
92 * Get the registered name of the component.
93 *
94 * @return string
95 */
96 protected static function getFacadeAccessor()
97 {
98 return 'events';
99 }
100 }
101