當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。