app->singleton(MicropubHandlerRegistry::class, function () { $registry = new MicropubHandlerRegistry; // Register handlers $registry->register('card', new CardHandler); $registry->register('entry', new EntryHandler); $registry->register('update', new UpdateHandler); return $registry; }); } }