Changed the core Object to not require any params in the constructor, and now we rely on polymorphism in the classes themselves to override that.

git-svn-id: http://svn.cleancode.org/svn/pickles@74 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-10-14 13:27:26 +00:00
parent 3fc3f74e75
commit d2d6c47682
12 changed files with 166 additions and 48 deletions

View file

@ -41,9 +41,13 @@ class Config extends Object {
/**
* Constructor
*
* Calls the parent constructor and loads the pass file
*
* @param string $file Filename of the config file (optional)
*/
public function __construct($file = '../config.xml') {
parent::__construct($this);
parent::__construct();
$this->load($file);
}