コード例 #1
0
ファイル: CheckRequestType.php プロジェクト: Maksold/platform
 /**
  * {@inheritdoc}
  */
 public function process(ContextInterface $context)
 {
     /** @var Context $context */
     if ($this->isJsonApiRequest($context->getRequestHeaders())) {
         $context->setRequestType(RequestType::JSON_API);
     }
 }