Added Cache class and made adjustments to Config to default the variables to false.

This commit is contained in:
Josh Sherman 2011-10-30 17:14:56 -04:00
parent df5a2e2aaa
commit 237cb22990
4 changed files with 431 additions and 7 deletions

View file

@ -183,10 +183,13 @@ class Config extends Object
$this->data['pickles']['profiler'] = false;
}
// Defaults logging to false if it doesn't exist
if (!isset($this->data['pickles']['logging']))
// Defaults expected PICKLES options to false
foreach (array('cache', 'logging') as $variable)
{
$this->data['pickles']['logging'] = false;
if (!isset($this->data['pickles'][$variable]))
{
$this->data['pickles'][$variable] = false;
}
}
// Creates constants for the security levels