当前位置: 首页>>代码示例>>PHP>>正文


PHP Client::doRequest方法代码示例

本文整理汇总了PHP中Symfony\Component\HttpKernel\Client::doRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::doRequest方法的具体用法?PHP Client::doRequest怎么用?PHP Client::doRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\HttpKernel\Client的用法示例。


在下文中一共展示了Client::doRequest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: doRequest

 protected function doRequest($request)
 {
     if ($this->credentials !== null) {
         $request->attributes->set('indieauth.client.token', $this->credentials);
     }
     return parent::doRequest($request);
 }
开发者ID:bnvk,项目名称:shrewdness,代码行数:7,代码来源:console.php

示例2: doRequest

 /**
  * Makes a request.
  *
  * @param Request $request A Request instance
  *
  * @return Response A Response instance
  */
 protected function doRequest($request)
 {
     // avoid shutting down the Kernel if no request has been performed yet
     // WebTestCase::createClient() boots the Kernel but do not handle a request
     if ($this->hasPerformedRequest) {
         $this->kernel->shutdown();
     } else {
         $this->hasPerformedRequest = true;
     }
     return parent::doRequest($request);
 }
开发者ID:joan16v,项目名称:symfony2_test,代码行数:18,代码来源:Client.php

示例3: doRequest

 /**
  * @param \Symfony\Component\HttpFoundation\Request $request
  */
 protected function doRequest($request)
 {
     if ($this->rebootable) {
         if ($this->hasPerformedRequest) {
             $this->rebootKernel();
         } else {
             $this->hasPerformedRequest = true;
         }
     }
     return parent::doRequest($request);
 }
开发者ID:solutionDrive,项目名称:Codeception,代码行数:14,代码来源:Symfony.php

示例4: doRequest

 protected function doRequest($request)
 {
     $services = [];
     if (self::$hasPerformedRequest) {
         $services = $this->persistServices();
         $this->kernel = clone $this->kernel;
     } else {
         self::$hasPerformedRequest = true;
     }
     $this->kernel->boot();
     $container = $this->kernel->getContainer();
     if ($this->kernel->getContainer()->has('profiler')) {
         $container->get('profiler')->enable();
     }
     $this->injectPersistedServices($services);
     return parent::doRequest($request);
 }
开发者ID:kansey,项目名称:yii2albom,代码行数:17,代码来源:Symfony2.php

示例5: doRequest

 /**
  * {@inheritdoc}
  *
  * @param Request $request A Request instance
  *
  * @return Response A Response instance
  */
 protected function doRequest($request)
 {
     // avoid shutting down the Kernel if no request has been performed yet
     // WebTestCase::createClient() boots the Kernel but do not handle a request
     if ($this->hasPerformedRequest) {
         $this->kernel->shutdown();
     } else {
         $this->hasPerformedRequest = true;
     }
     if ($this->profiler) {
         $this->profiler = false;
         $this->kernel->boot();
         $this->kernel->getContainer()->get('profiler')->enable();
     }
     return parent::doRequest($request);
 }
开发者ID:NivalM,项目名称:VacantesJannaMotors,代码行数:23,代码来源:Client.php


注:本文中的Symfony\Component\HttpKernel\Client::doRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。