-
Notifications
You must be signed in to change notification settings - Fork 0
/
compat.php
38 lines (33 loc) · 1.79 KB
/
compat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* This file makes for smoother migration by aliasing classes that have been renamed or replaced.
*
* class_alias( new_class, old_class )
*/
if (interface_exists(Dakujem\Wire\Constructor::class) && !interface_exists(Dakujem\Constructor::class)) {
class_alias(Dakujem\Wire\Constructor::class, Dakujem\Constructor::class);
}
if (interface_exists(Dakujem\Wire\Invoker::class) && !interface_exists(Dakujem\Invoker::class)) {
class_alias(Dakujem\Wire\Invoker::class, Dakujem\Invoker::class);
}
if (trait_exists(Dakujem\Wire\PredictableAccess::class) && !trait_exists(Dakujem\PredictableAccess::class)) {
class_alias(Dakujem\Wire\PredictableAccess::class, Dakujem\PredictableAccess::class);
}
if (class_exists(Dakujem\Wire\Genie::class) && !class_exists(Dakujem\WireGenie::class)) {
class_alias(Dakujem\Wire\Genie::class, Dakujem\WireGenie::class);
}
if (class_exists(Dakujem\Wire\Genie::class) && !class_exists(Dakujem\WireInvoker::class)) {
class_alias(Dakujem\Wire\Genie::class, Dakujem\WireInvoker::class);
}
if (class_exists(Dakujem\Wire\TagBasedStrategy::class) && !class_exists(Dakujem\ArgInspector::class)) {
class_alias(Dakujem\Wire\TagBasedStrategy::class, Dakujem\ArgInspector::class);
}
if (class_exists(Dakujem\Wire\Simpleton::class) && !class_exists(Dakujem\InvokableProvider::class)) {
class_alias(Dakujem\Wire\Simpleton::class, Dakujem\InvokableProvider::class);
}
if (class_exists(Dakujem\Wire\Limiter::class) && !class_exists(Dakujem\WireLimiter::class)) {
class_alias(Dakujem\Wire\Limiter::class, Dakujem\WireLimiter::class);
}
if (class_exists(Dakujem\Wire\Exceptions\ServiceNotWhitelisted::class) && !class_exists(Dakujem\WireLimiterException::class)) {
class_alias(Dakujem\Wire\Exceptions\ServiceNotWhitelisted::class, Dakujem\WireLimiterException::class);
}