jonnybarnes.uk/app/Http/Controllers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes e08763c526
Migrate outbound HTTP calls from Guzzle to the Http facade
Replaces every raw GuzzleHttp\Client usage (Nominatim, web.archive.org,
webmention fetch/discover/send, Bridgy syndication, IndieAuth client_id
lookup, contact avatar/h-card fetch, profile image download, and the
CloudConvert screenshot pipeline) with Illuminate\Support\Facades\Http,
and enables Http::preventStrayRequests() globally in tests so any
un-faked outbound call now fails loudly instead of silently hitting the
network.

The CloudConvert retry-until-finished middleware in AppServiceProvider
is replaced by a plain polling loop in SaveScreenshot, which also fixes
a latent bug where the old middleware decoded a response object instead
of its body. Bridgy syndication jobs keep their tries=1/no-retry
semantics unchanged to avoid duplicate publishes. Guzzle's PSR-7 helpers
(Header, UriResolver, Utils) stay in SendWebMentions since Http has no
equivalent for them.

Every affected test file's Guzzle MockHandler/HandlerStack boilerplate
is replaced with Http::fake()/Http::sequence().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P8j7cJhCiYDsGUgB7obKNQ
2026-07-26 09:12:01 +01:00
..
Admin Migrate outbound HTTP calls from Guzzle to the Http facade 2026-07-26 09:12:01 +01:00
ArticlesController.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
AuthController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
BookmarksController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
ContactsController.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
Controller.php Upgrade to Laravel 11 2024-03-19 20:13:36 +00:00
FeedsController.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
FrontPageController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
IndieAuthController.php Migrate outbound HTTP calls from Guzzle to the Http facade 2026-07-26 09:12:01 +01:00
LikesController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
MicropubController.php Move request parsing into DTOs via fromRequest(), expand update handler 2026-03-13 20:39:50 +00:00
MicropubMediaController.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
NotesController.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
PlacesController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
SearchController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
WebMentionsController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00