Adopt Laravel's Image facade for media processing, upgrade Intervention to v4
Laravel 13's Image facade wraps Intervention Image v4 internally, so switching our upload width probe and resize job/command to it required bumping intervention/image ^3 -> ^4 (and its intervention/gif ^5 dependency). Removes our own ImageManager container binding and config/image.php in favour of Laravel's built-in driver resolution. Also fixes a latent filename mismatch in ProcessMediaJobTest that Pint's stricter typing on the new Image API turned into a hard TypeError, and tidies config/flare.php to use imported class names instead of FQCNs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Sorsgn85nw7uQyRMNvzyD
This commit is contained in:
parent
287520ad7b
commit
31c49ac3fc
9 changed files with 54 additions and 89 deletions
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Spatie\FlareClient\Sampling\RateSampler;
|
||||
use Spatie\LaravelFlare\FlareConfig;
|
||||
use Spatie\LaravelFlare\Senders\LaravelHttpSender;
|
||||
|
||||
return [
|
||||
/*
|
||||
|
|
||||
|
|
@ -25,7 +29,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'collects' => \Spatie\LaravelFlare\FlareConfig::defaultCollects(
|
||||
'collects' => FlareConfig::defaultCollects(
|
||||
ignore: [],
|
||||
extra: []
|
||||
),
|
||||
|
|
@ -74,7 +78,7 @@ return [
|
|||
*/
|
||||
|
||||
'sender' => [
|
||||
'class' => \Spatie\LaravelFlare\Senders\LaravelHttpSender::class,
|
||||
'class' => LaravelHttpSender::class,
|
||||
'config' => [
|
||||
'timeout' => 10,
|
||||
],
|
||||
|
|
@ -165,7 +169,7 @@ return [
|
|||
*/
|
||||
|
||||
'sampler' => [
|
||||
'class' => \Spatie\FlareClient\Sampling\RateSampler::class,
|
||||
'class' => RateSampler::class,
|
||||
'config' => [
|
||||
'rate' => env('FLARE_SAMPLER_RATE', 0.1),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Driver;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Image Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Intervention Image supports "GD Library" and "Imagick" to process images
|
||||
| internally. You may choose one of them according to your PHP
|
||||
| configuration. By default PHP's "GD Library" implementation is used.
|
||||
|
|
||||
| Supported: "gd", "imagick"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => Driver::class,
|
||||
|
||||
];
|
||||
Loading…
Reference in a new issue