app->singleton(AttachmentRepository::class, function () { global $wpdb; return new PostMetaAttachmentRepository($wpdb); }); } }