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


PHP DrupalKernel::__construct方法代码示例

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


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

示例1: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct($environment, ClassLoader $class_loader)
 {
     parent::__construct($environment, $class_loader, FALSE);
     // Prime the module list and corresponding Extension objects.
     // @todo Remove System module. Needed because \Drupal\Core\Datetime\Date
     //   has a (needless) dependency on the 'date_format' entity, so calls to
     //   format_date()/format_interval() cause a plugin not found exception.
     $this->moduleList = array('system' => 0, 'simpletest' => 0);
     $this->moduleData = array('system' => new Extension('module', 'core/modules/system/system.info.yml', 'system.module'), 'simpletest' => new Extension('module', 'core/modules/simpletest/simpletest.info.yml', 'simpletest.module'));
 }
开发者ID:alnutile,项目名称:drunatra,代码行数:13,代码来源:TestRunnerKernel.php

示例2: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct($environment, $class_loader, $allow_dumping = TRUE)
 {
     // Include our bootstrap file.
     require_once __DIR__ . '/../../../../includes/bootstrap.inc';
     // Exit if we should be in a test environment but aren't.
     if (!drupal_valid_test_ua()) {
         header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
         exit;
     }
     parent::__construct($environment, $class_loader, $allow_dumping);
 }
开发者ID:ddrozdik,项目名称:dmaps,代码行数:14,代码来源:TestKernel.php

示例3: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct($environment, $class_loader, $allow_dumping = FALSE, $app_root = NULL)
 {
     // Force $allow_dumping to FALSE, because the test runner kernel should
     // always have to rebuild its container, and potentially avoid isolation
     // issues against the tests.
     parent::__construct($environment, $class_loader, FALSE, $app_root);
     // Prime the module list and corresponding Extension objects.
     // @todo Remove System module. Needed because
     //   \Drupal\Core\Datetime\DateFormatter has a (needless) dependency on the
     //   'date_format' entity, so calls to format_date()/format_interval() cause
     //   a plugin not found exception.
     $this->moduleList = array('system' => 0, 'simpletest' => 0);
     $this->moduleData = array('system' => new Extension($this->root, 'module', 'core/modules/system/system.info.yml', 'system.module'), 'simpletest' => new Extension($this->root, 'module', 'core/modules/simpletest/simpletest.info.yml', 'simpletest.module'));
 }
开发者ID:eigentor,项目名称:tommiblog,代码行数:17,代码来源:TestRunnerKernel.php

示例4: __construct

 /**
  * TestDrupalKernel constructor.
  */
 public function __construct($env, $class_loader, $root)
 {
     $this->root = $root;
     parent::__construct($env, $class_loader);
 }
开发者ID:dustinleblanc,项目名称:codeception-drupal-8,代码行数:8,代码来源:TestDrupalKernel.php


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