Modularize Celerity postprocessors

Summary: Not sure if we want this, but it seems to work fine.

Test Plan: {F516736}

Reviewers: joshuaspence, chad

Reviewed By: joshuaspence, chad

Subscribers: joshuaspence, epriestley

Differential Revision: https://secure.phabricator.com/D13363
This commit is contained in:
epriestley
2015-06-20 06:10:42 -07:00
parent 430194310f
commit bb58a123e6
19 changed files with 415 additions and 179 deletions

View File

@@ -322,7 +322,9 @@ final class PhabricatorFileComposeController
private function composeImage($color, $icon_data) {
$icon_img = imagecreatefromstring($icon_data);
$map = CelerityResourceTransformer::getCSSVariableMap();
$map = id(new CelerityResourceTransformer())
->getCSSVariableMap();
$color_string = idx($map, $color, '#ff00ff');
$color_const = hexdec(trim($color_string, '#'));