/** * {@inheritdoc} */ protected function getKernelParameters() { if (null === $this->projectDir) { $this->projectDir = dirname($this->rootDir); } return array_merge(parent::getKernelParameters(), array('sculpin.project_dir' => $this->projectDir)); }
/** * 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; }
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()); }
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); }
/** * {@inheritdoc} */ protected function getKernelParameters() { $extraParameters = ['kernel.var_dir' => $this->getVarDir(), 'kernel.resource_dir' => $this->getResourceDir()]; return array_merge($extraParameters, parent::getKernelParameters()); }
protected function getKernelParameters() { return array_merge(array('kernel.var_dir' => $this->getVarDir(), 'kernel.config_dir' => $this->getConfigDir()), parent::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; }
protected function getKernelParameters() { $parameters = parent::getKernelParameters(); return $parameters; }
/** * {@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; }
/** * {@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()); }
/** * {@inheritdoc} */ protected function getKernelParameters() { $parameter = parent::getKernelParameters(); return array_merge($parameter, ['home' => $this->userDir, 'project' => getcwd()]); }
/** * {@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()]); }
protected function getKernelParameters() { return array_merge(parent::getKernelParameters(), array('gitonomy.shell_command' => $this->getShellCommand(), 'gitonomy.version' => self::VERSION)); }
protected function getKernelParameters() { $parameters = parent::getKernelParameters(); $parameters['kernel.test_case'] = $this->testCase; return $parameters; }
public function getKernelParameters() { return array_merge(array('kernel.data_dir' => realpath($this->getDataDir()) ?: $this->getDataDir()), parent::getKernelParameters()); }
/** * {@inheritdoc} */ protected function getKernelParameters() { return array_merge(array('kernel.project_name' => $this->getConfiguration()->getProjectName(), 'kernel.project_dir' => $this->getProjectDir(), 'kernel.config_dir' => $this->getConfigDir(), 'kernel.web_dir' => $this->getWebDir()), parent::getKernelParameters()); }
/** * {@inheritDoc} */ protected function getKernelParameters() { return array_merge(parent::getKernelParameters(), ['sulu.context' => $this->getContext()]); }
/** * {@inheritdoc} */ protected function getKernelParameters() { return array_merge(parent::getKernelParameters(), array('kernel.conf_dir' => $this->getConfDir())); }
/** * 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"] = THELIA_ROOT . "core/lib/Thelia"; $parameters["thelia.module_dir"] = THELIA_MODULE_DIR; return $parameters; }
protected function getKernelParameters() { return array_merge(parent::getKernelParameters(), array('kernel.test_env' => $this->testEnv, 'kernel.test_env_dir' => $this->getTestEnvDir())); }
/** * Returns the kernel parameters. * * @return array An array of kernel parameters */ protected function getKernelParameters() { $params = array_merge(parent::getKernelParameters(), array('kernel.data_dir' => $this->getDataDir())); return $params; }