상속: extends Crummy\Phlack\Common\Hash
예제 #1
0
파일: Message.php 프로젝트: mcrumm/phlack
 /**
  * {@inheritdoc}
  */
 protected function setDefaultOptions(OptionsResolver $resolver)
 {
     parent::setDefaultOptions($resolver);
     $resolver->setTypesAllowed(['attachments' => '\\Crummy\\Phlack\\Message\\Collection\\AttachmentCollection']);
     $resolver->setNormalizers(['icon_emoji' => function (Options $options, $value) {
         return empty($value) ? $value : sprintf(':%s:', trim($value, ':'));
     }]);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function setDefaultOptions(OptionsResolver $resolver)
 {
     parent::setDefaultOptions($resolver);
     $resolver->setTypesAllowed(['fields' => '\\Crummy\\Phlack\\Message\\Collection\\FieldCollection']);
 }