예제 #1
0
파일: Mailru.php 프로젝트: bessonov87/bw
 /**
  * @inheritdoc
  */
 protected function determineContentTypeByRaw($rawContent)
 {
     //determine json array's too
     if (preg_match('/^\\[.*\\]$/is', $rawContent)) {
         return self::CONTENT_TYPE_JSON;
     }
     return parent::determineContentTypeByRaw($rawContent);
 }