renderers = $renderers; } /** * * @return array */ public function renderers() { return $this->renderers; } /** * * @param HttpResource $asset * @return array */ public function render($asset) { $result = array(); $plugins = self::plugins(); foreach ($this->renderers as $renderer) { $data = $renderer->render($asset); $data = $data ? $data : array(); foreach ($data as $key => $value) { if (!isset($result[$key]) && !empty($value)) { $result[$key] = $value; } } } return $result; } }