You are here

protected function Kernel::getKernelParameters in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::getKernelParameters()

Returns the kernel parameters.

Return value

array An array of kernel parameters

1 call to Kernel::getKernelParameters()
Kernel::getContainerBuilder in vendor/symfony/http-kernel/Kernel.php
Gets a new ContainerBuilder instance used to build the service container.

File

vendor/symfony/http-kernel/Kernel.php, line 531

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

protected function getKernelParameters() {
  $bundles = array();
  foreach ($this->bundles as $name => $bundle) {
    $bundles[$name] = get_class($bundle);
  }
  return array_merge(array(
    'kernel.root_dir' => realpath($this->rootDir) ?: $this->rootDir,
    'kernel.environment' => $this->environment,
    'kernel.debug' => $this->debug,
    'kernel.name' => $this->name,
    'kernel.cache_dir' => realpath($this
      ->getCacheDir()) ?: $this
      ->getCacheDir(),
    'kernel.logs_dir' => realpath($this
      ->getLogDir()) ?: $this
      ->getLogDir(),
    'kernel.bundles' => $bundles,
    'kernel.charset' => $this
      ->getCharset(),
    'kernel.container_class' => $this
      ->getContainerClass(),
  ), $this
    ->getEnvParameters());
}