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


PHP Client::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Constructor.
  *
  * @param Application $app
  */
 public function __construct(Application $app)
 {
     $this->app = $app;
     $this->httpKernel = $this->app->make('Illuminate\\Contracts\\Http\\Kernel');
     $this->httpKernel->bootstrap();
     $this->app->boot();
     parent::__construct($this);
 }
开发者ID:itillawarra,项目名称:cmfive,代码行数:13,代码来源:Laravel5.php

示例2: __construct

 /**
  * Constructor.
  *
  * @param \Codeception\Module\Laravel4 $module
  */
 public function __construct($module)
 {
     $this->module = $module;
     $this->initialize();
     parent::__construct($this->kernel);
     // Parent constructor defaults to not following redirects
     $this->followRedirects(true);
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:13,代码来源:Laravel4.php

示例3: __construct

 /**
  * Constructor.
  *
  * @param \Symfony\Component\HttpKernel\Kernel  $kernel     A booted HttpKernel instance
  * @param array                                 $services   An injected services
  * @param boolean                               $rebootable
  */
 public function __construct(\Symfony\Component\HttpKernel\Kernel $kernel, array $services = [], $rebootable = true)
 {
     parent::__construct($kernel);
     $this->followRedirects(true);
     $this->rebootable = (bool) $rebootable;
     $this->persistentServices = $services;
     $this->rebootKernel();
 }
开发者ID:solutionDrive,项目名称:Codeception,代码行数:15,代码来源:Symfony.php

示例4: __construct

 /**
  * Constructor.
  * @param \Codeception\Module\Laravel5 $module
  */
 public function __construct($module)
 {
     $this->module = $module;
     $this->initialize();
     $components = parse_url($this->app['config']->get('app.url', 'http://localhost'));
     $host = isset($components['host']) ? $components['host'] : 'localhost';
     parent::__construct($this->app, ['HTTP_HOST' => $host]);
     // Parent constructor defaults to not following redirects
     $this->followRedirects(true);
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:14,代码来源:Laravel5.php

示例5: __construct

 /**
  * Constructor.
  *
  * @param Application $app
  */
 public function __construct(Application $app)
 {
     $this->app = $app;
     $this->httpKernel = $this->app->make('Illuminate\\Contracts\\Http\\Kernel');
     $this->httpKernel->bootstrap();
     $this->app->boot();
     $url = $this->app->config->get('app.url', 'http://localhost');
     $this->app->instance('request', Request::createFromBase(SyfmonyRequest::create($url)));
     $components = parse_url($url);
     $host = isset($components['host']) ? $components['host'] : 'localhost';
     parent::__construct($this, ['HTTP_HOST' => $host]);
     $this->followRedirects(true);
     // Parent constructor sets this to false by default
 }
开发者ID:codeception,项目名称:base,代码行数:19,代码来源:Laravel5.php

示例6: __construct

 /**
  * Constructor.
  *
  * @param \Codeception\Module\Laravel5 $module
  */
 public function __construct($module)
 {
     $this->module = $module;
     $this->exceptionHandlingDisabled = $this->module->config['disable_exception_handling'];
     $this->middlewareDisabled = $this->module->config['disable_middleware'];
     $this->eventsDisabled = $this->module->config['disable_events'];
     $this->initialize();
     $components = parse_url($this->app['config']->get('app.url', 'http://localhost'));
     if (array_key_exists('url', $this->module->config)) {
         $components = parse_url($this->module->config['url']);
     }
     $host = isset($components['host']) ? $components['host'] : 'localhost';
     parent::__construct($this->app, ['HTTP_HOST' => $host]);
     // Parent constructor defaults to not following redirects
     $this->followRedirects(true);
 }
开发者ID:janhenkgerritsen,项目名称:Codeception,代码行数:21,代码来源:Laravel5.php

示例7: __construct

 /**
  * Constructor.
  *
  * @param Application $app
  */
 public function __construct(Application $app)
 {
     $this->app = $app;
     parent::__construct($this);
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:10,代码来源:Lumen.php

示例8: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct(KernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($kernel, $server, $history, $cookieJar);
 }
开发者ID:NivalM,项目名称:VacantesJannaMotors,代码行数:7,代码来源:Client.php

示例9: __construct

 /**
  * Constructor.
  *
  * @param HttpKernelInterface $kernel    A Kernel instance
  * @param array               $server    The server parameters (equivalent of $_SERVER)
  * @param History             $history   A History instance to store the browser history
  * @param CookieJar           $cookieJar A CookieJar instance to store the cookies
  */
 public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($kernel, $server, $history, $cookieJar);
     $this->container = $kernel->getContainer();
 }
开发者ID:rsky,项目名称:symfony,代码行数:13,代码来源:Client.php


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