當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Kernel::getKernelParameters方法代碼示例

本文整理匯總了PHP中Symfony\Component\HttpKernel\Kernel::getKernelParameters方法的典型用法代碼示例。如果您正苦於以下問題:PHP Kernel::getKernelParameters方法的具體用法?PHP Kernel::getKernelParameters怎麽用?PHP Kernel::getKernelParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Symfony\Component\HttpKernel\Kernel的用法示例。


在下文中一共展示了Kernel::getKernelParameters方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getKernelParameters

 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     if (null === $this->projectDir) {
         $this->projectDir = dirname($this->rootDir);
     }
     return array_merge(parent::getKernelParameters(), array('sculpin.project_dir' => $this->projectDir));
 }
開發者ID:georgjaehnig,項目名稱:sculpin,代碼行數:10,代碼來源:AbstractKernel.php

示例2: getKernelParameters

 /**
  * Returns the kernel parameters.
  *
  * @return array An array of kernel parameters
  */
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     $parameters['kernel.drupal_root'] = DRUPAL_ROOT;
     $parameters['kernel.conf_path'] = conf_path();
     return $parameters;
 }
開發者ID:drufony,項目名稱:kernel-module,代碼行數:12,代碼來源:DrupalEmbeddedKernel.php

示例3: getKernelParameters

 protected final function getKernelParameters()
 {
     $reflection = new ReflectionClass(\Dumplie\SharedKernel\Application\ServiceLocator::class);
     $dumplieRootDir = realpath(dirname($reflection->getFileName()) . '/../../');
     if (!file_exists($dumplieRootDir)) {
         throw new \RuntimeException(sprintf("Dumplie root dir path \"%s\"does not exists.", $dumplieRootDir));
     }
     return array_merge(['dumplie.root_dir' => $dumplieRootDir], parent::getKernelParameters());
 }
開發者ID:dumplie,項目名稱:dumplie,代碼行數:9,代碼來源:Kernel.php

示例4: getKernelParameters

 protected function getKernelParameters()
 {
     $base = parent::getKernelParameters();
     $new = array();
     $toClassName = function ($object) {
         return get_class($object);
     };
     foreach ($this->zikulaBundles as $type => $bundles) {
         $new['kernel.zikula.' . $type] = array_map($toClassName, $bundles);
     }
     return array_merge($base, $new);
 }
開發者ID:planetenkiller,項目名稱:core,代碼行數:12,代碼來源:ZikulaKernel.php

示例5: getKernelParameters

 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     $extraParameters = ['kernel.var_dir' => $this->getVarDir(), 'kernel.resource_dir' => $this->getResourceDir()];
     return array_merge($extraParameters, parent::getKernelParameters());
 }
開發者ID:intriro,項目名稱:symfony-extensions,代碼行數:8,代碼來源:Kernel.php

示例6: getKernelParameters

 protected function getKernelParameters()
 {
     return array_merge(array('kernel.var_dir' => $this->getVarDir(), 'kernel.config_dir' => $this->getConfigDir()), parent::getKernelParameters());
 }
開發者ID:morki,項目名稱:bounce-bundle,代碼行數:4,代碼來源:Kernel.php

示例7: getKernelParameters

 /**
  * Returns the kernel parameters.
  *
  * @return array An array of kernel parameters
  */
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     $parameters["thelia.root_dir"] = THELIA_ROOT;
     $parameters["thelia.core_dir"] = dirname(__DIR__);
     // This class is in core/lib/Thelia/Core.
     $parameters["thelia.module_dir"] = THELIA_MODULE_DIR;
     return $parameters;
 }
開發者ID:puterakahfi,項目名稱:thelia,代碼行數:14,代碼來源:Thelia.php

示例8: getKernelParameters

 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     return $parameters;
 }
開發者ID:superdesk,項目名稱:web-publisher,代碼行數:5,代碼來源:AppKernel.php

示例9: getKernelParameters

 /**
  * {@inheritDoc}
  *
  * Modified to add kernel.context parameter.
  */
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     $parameters['kernel.context'] = $this->getContext();
     $parameters['zenmagick.root_dir'] = dirname($this->getRootDir());
     // @todo remove this
     // @todo temporary helper parameter until context is gone.
     return $parameters;
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:14,代碼來源:AppKernel.php

示例10: getKernelParameters

 /**
  * {@inheritDoc}
  */
 protected function getKernelParameters()
 {
     return array_merge(array('kernel.cnf.target' => $this->target->getTarget(), 'kernel.cnf.root_dir' => $this->target->getRootDir(), 'kernel.cnf.target_dir' => $this->target->getTargetDir()), parent::getKernelParameters());
 }
開發者ID:hoppinger,項目名稱:config-kernel,代碼行數:7,代碼來源:Kernel.php

示例11: getKernelParameters

 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     $parameter = parent::getKernelParameters();
     return array_merge($parameter, ['home' => $this->userDir, 'project' => getcwd()]);
 }
開發者ID:nanbando,項目名稱:core,代碼行數:8,代碼來源:Kernel.php

示例12: getKernelParameters

 /**
  * {@inheritdoc}
  *
  * @return array
  */
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     return array_merge($parameters, ['kernel.not_debug' => !$this->debug, 'kernel.project_dir' => $this->getProjectDir(), 'kernel.config_dir' => $this->getConfigDir(), 'kernel.build' => $this->getBuild()]);
 }
開發者ID:michaldudek,項目名稱:flavour,代碼行數:10,代碼來源:Kernel.php

示例13: getKernelParameters

 protected function getKernelParameters()
 {
     return array_merge(parent::getKernelParameters(), array('gitonomy.shell_command' => $this->getShellCommand(), 'gitonomy.version' => self::VERSION));
 }
開發者ID:phecho,項目名稱:gitonomy,代碼行數:4,代碼來源:AppKernel.php

示例14: getKernelParameters

 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     $parameters['kernel.test_case'] = $this->testCase;
     return $parameters;
 }
開發者ID:rfc1483,項目名稱:doctrine,代碼行數:6,代碼來源:AppKernel.php

示例15: getKernelParameters

 public function getKernelParameters()
 {
     return array_merge(array('kernel.data_dir' => realpath($this->getDataDir()) ?: $this->getDataDir()), parent::getKernelParameters());
 }
開發者ID:gitdown-wiki,項目名稱:gitdown-wiki,代碼行數:4,代碼來源:AppKernel.php


注:本文中的Symfony\Component\HttpKernel\Kernel::getKernelParameters方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。