Page MenuHomePhabricator

Codex-PHP: Simplify HtmlSnippet interface
Open, HighPublic

Description

Currently, building an HtmlSnippet requires pretty verbose code:

$codex = new Codex();
$snippet = $codex->htmlSnippet()->setContent( 'raw HTML string' )->build();

We should simplify this to:

$codex = new Codex();
$codex->htmlSnippet( 'raw HTML string' );

Details

Event Timeline

Catrope moved this task from Backlog to In Progress on the Codex board.

Change #1199015 had a related patch set uploaded (by Catrope; author: Catrope):

[design/codex-php@main] [BREAKING CHANGE] Simplify how HtmlSnippets are built

https://gerrit.wikimedia.org/r/1199015

DTorsani-WMF moved this task from In Progress to Code Review on the Codex board.

Change #1199015 merged by jenkins-bot:

[design/codex-php@main] [BREAKING CHANGE] Simplify how HtmlSnippets are built

https://gerrit.wikimedia.org/r/1199015