getKernelParameters() public method

public getKernelParameters ( )
Exemplo n.º 1
0
 /**
  * {@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;
 }
Exemplo n.º 3
0
 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());
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     $extraParameters = ['kernel.var_dir' => $this->getVarDir(), 'kernel.resource_dir' => $this->getResourceDir()];
     return array_merge($extraParameters, parent::getKernelParameters());
 }
Exemplo n.º 6
0
 protected function getKernelParameters()
 {
     return array_merge(array('kernel.var_dir' => $this->getVarDir(), 'kernel.config_dir' => $this->getConfigDir()), parent::getKernelParameters());
 }
Exemplo n.º 7
0
 /**
  * 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;
 }
Exemplo n.º 8
0
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     return $parameters;
 }
Exemplo n.º 9
0
 /**
  * {@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;
 }
Exemplo n.º 10
0
 /**
  * {@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());
 }
Exemplo n.º 11
0
 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     $parameter = parent::getKernelParameters();
     return array_merge($parameter, ['home' => $this->userDir, 'project' => getcwd()]);
 }
Exemplo n.º 12
0
 /**
  * {@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()]);
 }
Exemplo n.º 13
0
 protected function getKernelParameters()
 {
     return array_merge(parent::getKernelParameters(), array('gitonomy.shell_command' => $this->getShellCommand(), 'gitonomy.version' => self::VERSION));
 }
Exemplo n.º 14
0
 protected function getKernelParameters()
 {
     $parameters = parent::getKernelParameters();
     $parameters['kernel.test_case'] = $this->testCase;
     return $parameters;
 }
Exemplo n.º 15
0
 public function getKernelParameters()
 {
     return array_merge(array('kernel.data_dir' => realpath($this->getDataDir()) ?: $this->getDataDir()), parent::getKernelParameters());
 }
Exemplo n.º 16
0
 /**
  * {@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());
 }
Exemplo n.º 17
0
 /**
  * {@inheritDoc}
  */
 protected function getKernelParameters()
 {
     return array_merge(parent::getKernelParameters(), ['sulu.context' => $this->getContext()]);
 }
Exemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 protected function getKernelParameters()
 {
     return array_merge(parent::getKernelParameters(), array('kernel.conf_dir' => $this->getConfDir()));
 }
Exemplo n.º 19
0
 /**
  * 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;
 }
Exemplo n.º 20
0
 protected function getKernelParameters()
 {
     return array_merge(parent::getKernelParameters(), array('kernel.test_env' => $this->testEnv, 'kernel.test_env_dir' => $this->getTestEnvDir()));
 }
Exemplo n.º 21
0
 /**
  * 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;
 }