Repository navigation
Commit 23dced4
committed
fix: register the Client frontage when it is there, skip it when it is not
The previous commit stopped the fatal by deleting the reference. That
half was right — Core\Front\Client\Boot was extracted to its own package
and an application without it fataled during Application::configure().
But the other half was wrong, and worse. The client package declares no
providers for Laravel's package discovery, only "dont-discover", so this
aggregate is the ONLY thing that registers the Client frontage. Verified
against a live application: Core\Front\Client\Boot resolves from
vendor/dappcore/client, is REGISTERED at runtime, and gets there through
this list and nothing else. Dropping the line trades a loud failure for a
silent one — an application that boots cleanly and has quietly lost its
customer dashboard.
Registered conditionally instead, in both the provider list and
middleware(), so it works installed and uninstalled.
The regression test kept its "does not fatal without the package" case
and gained the case that was missing: with the package present, the
frontage is actually registered. That one skips where the package is
absent, which is this repo, and is the half that would have caught the
mistake.
448 pre-existing failures unchanged either side of this commit.
Co-Authored-By: Virgil <virgil@lethean.io>1 parent bb67878 commit 23dced4
2 files changed
Lines changed: 50 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
52 | 68 | | |
53 | 69 | | |
54 | 70 | | |
| |||
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
61 | 84 | | |
62 | 85 | | |
63 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
41 | 59 | | |
42 | 60 | | |
0 commit comments