|
@@ -180,6 +180,12 @@ abstract class Kernel
|
|
|
|
|
|
public function getDefaultParameters()
|
|
|
{
|
|
|
+ $bundles = array();
|
|
|
+ foreach ($this->bundles as $bundle)
|
|
|
+ {
|
|
|
+ $bundles[] = get_class($bundle);
|
|
|
+ }
|
|
|
+
|
|
|
return array_merge(
|
|
|
array(
|
|
|
'kernel.root_dir' => $this->rootDir,
|
|
@@ -189,6 +195,7 @@ abstract class Kernel
|
|
|
'kernel.cache_dir' => $this->rootDir.'/cache/'.$this->environment,
|
|
|
'kernel.logs_dir' => $this->rootDir.'/logs',
|
|
|
'kernel.bundle_dirs' => $this->bundleDirs,
|
|
|
+ 'kernel.bundles' => $bundles,
|
|
|
'kernel.charset' => 'UTF-8',
|
|
|
),
|
|
|
$this->getEnvParameters(),
|