getKernelParameters() public method

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