[Foundation] added kernel.bundles to the list of default parameters of the DIC
This commit is contained in:
parent
62c2ef65f8
commit
0dcaabfc8c
@ -180,6 +180,12 @@ abstract class Kernel
|
|||||||
|
|
||||||
public function getDefaultParameters()
|
public function getDefaultParameters()
|
||||||
{
|
{
|
||||||
|
$bundles = array();
|
||||||
|
foreach ($this->bundles as $bundle)
|
||||||
|
{
|
||||||
|
$bundles[] = get_class($bundle);
|
||||||
|
}
|
||||||
|
|
||||||
return array_merge(
|
return array_merge(
|
||||||
array(
|
array(
|
||||||
'kernel.root_dir' => $this->rootDir,
|
'kernel.root_dir' => $this->rootDir,
|
||||||
@ -189,6 +195,7 @@ abstract class Kernel
|
|||||||
'kernel.cache_dir' => $this->rootDir.'/cache/'.$this->environment,
|
'kernel.cache_dir' => $this->rootDir.'/cache/'.$this->environment,
|
||||||
'kernel.logs_dir' => $this->rootDir.'/logs',
|
'kernel.logs_dir' => $this->rootDir.'/logs',
|
||||||
'kernel.bundle_dirs' => $this->bundleDirs,
|
'kernel.bundle_dirs' => $this->bundleDirs,
|
||||||
|
'kernel.bundles' => $bundles,
|
||||||
'kernel.charset' => 'UTF-8',
|
'kernel.charset' => 'UTF-8',
|
||||||
),
|
),
|
||||||
$this->getEnvParameters(),
|
$this->getEnvParameters(),
|
||||||
|
@ -448,6 +448,12 @@ abstract class Kernel
|
|||||||
|
|
||||||
public function getDefaultParameters()
|
public function getDefaultParameters()
|
||||||
{
|
{
|
||||||
|
$bundles = array();
|
||||||
|
foreach ($this->bundles as $bundle)
|
||||||
|
{
|
||||||
|
$bundles[] = get_class($bundle);
|
||||||
|
}
|
||||||
|
|
||||||
return array_merge(
|
return array_merge(
|
||||||
array(
|
array(
|
||||||
'kernel.root_dir' => $this->rootDir,
|
'kernel.root_dir' => $this->rootDir,
|
||||||
@ -457,6 +463,7 @@ abstract class Kernel
|
|||||||
'kernel.cache_dir' => $this->rootDir.'/cache/'.$this->environment,
|
'kernel.cache_dir' => $this->rootDir.'/cache/'.$this->environment,
|
||||||
'kernel.logs_dir' => $this->rootDir.'/logs',
|
'kernel.logs_dir' => $this->rootDir.'/logs',
|
||||||
'kernel.bundle_dirs' => $this->bundleDirs,
|
'kernel.bundle_dirs' => $this->bundleDirs,
|
||||||
|
'kernel.bundles' => $bundles,
|
||||||
'kernel.charset' => 'UTF-8',
|
'kernel.charset' => 'UTF-8',
|
||||||
),
|
),
|
||||||
$this->getEnvParameters(),
|
$this->getEnvParameters(),
|
||||||
|
Reference in New Issue
Block a user