コード例 #1
0
ファイル: ContentRender.php プロジェクト: jarves/jarves
 /**
  * @param string $type
  * @param AbstractType $contentType
  */
 public function addType($type, $contentType)
 {
     $this->types[$type] = $contentType;
     if ($contentType instanceof ContentRendererAwareContentType) {
         $contentType->setContentRenderer($this);
     }
 }