Differential D7864 Diff 17804 src/infrastructure/celerity/management/CelerityManagementMapWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/celerity/management/CelerityManagementMapWorkflow.php
- This file was added.
| <?php | |||||
| final class CelerityManagementMapWorkflow | |||||
| extends CelerityManagementWorkflow { | |||||
| public function didConstruct() { | |||||
| $this | |||||
| ->setName('map') | |||||
| ->setExamples('**map** [options]') | |||||
| ->setSynopsis(pht('Rebuild static resource maps.')) | |||||
| ->setArguments( | |||||
| array()); | |||||
| } | |||||
| public function execute(PhutilArgumentParser $args) { | |||||
| $resources_map = CelerityResources::getAll(); | |||||
| foreach ($resources_map as $name => $resources) { | |||||
| // TODO: This does not do anything useful yet. | |||||
| var_dump($resources->findBinaryResources()); | |||||
| var_dump($resources->findTextResources()); | |||||
| } | |||||
| return 0; | |||||
| } | |||||
| } | |||||