本文整理汇总了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));
}
示例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;
}
示例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());
}
示例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);
}
示例5: getKernelParameters
/**
* {@inheritdoc}
*/
protected function getKernelParameters()
{
$extraParameters = ['kernel.var_dir' => $this->getVarDir(), 'kernel.resource_dir' => $this->getResourceDir()];
return array_merge($extraParameters, parent::getKernelParameters());
}
示例6: getKernelParameters
protected function getKernelParameters()
{
return array_merge(array('kernel.var_dir' => $this->getVarDir(), 'kernel.config_dir' => $this->getConfigDir()), parent::getKernelParameters());
}
示例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;
}
示例8: getKernelParameters
protected function getKernelParameters()
{
$parameters = parent::getKernelParameters();
return $parameters;
}
示例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;
}
示例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());
}
示例11: getKernelParameters
/**
* {@inheritdoc}
*/
protected function getKernelParameters()
{
$parameter = parent::getKernelParameters();
return array_merge($parameter, ['home' => $this->userDir, 'project' => getcwd()]);
}
示例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()]);
}
示例13: getKernelParameters
protected function getKernelParameters()
{
return array_merge(parent::getKernelParameters(), array('gitonomy.shell_command' => $this->getShellCommand(), 'gitonomy.version' => self::VERSION));
}
示例14: getKernelParameters
protected function getKernelParameters()
{
$parameters = parent::getKernelParameters();
$parameters['kernel.test_case'] = $this->testCase;
return $parameters;
}
示例15: getKernelParameters
public function getKernelParameters()
{
return array_merge(array('kernel.data_dir' => realpath($this->getDataDir()) ?: $this->getDataDir()), parent::getKernelParameters());
}