Commit 6d73510
Verify
* Verify `blade.compiler` is available before registering the component namespace
Closes laravel/framework#57078
Laravel 12.29.0 added a dependency on `phiki/phiki`, which has a discoverable service provider to auto-register a Blade's component namespace.
In apps that opt out of loading Laravel's `ViewServiceProvider`, the `blade.compiler` binding proxied by the `Blade` façade is not available, which causes an error.
Console-only applications can opt out of some providers to reduce size when deployed as PHAR archives.
**This PR**
- Adds a guard around the Blade's component namespace registration to ensure the `blade.compiler` is bound to the container.
* Update src/Adapters/Laravel/PhikiServiceProvider.php
Use Facade::resolved() helper
Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
---------
Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>blade.compiler is available before registering the component namespace (#120)1 parent acde7e7 commit 6d73510
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
0 commit comments