/** * Merges this configuration element with the data found in the passed configuration file. * * @param string $file The path to the file we want to merge * * @return \TechDivision\Configuration\Interfaces\ConfigurationInterface The configuration created from the passed file */ public function mergeFromFile($file) { // initialize a new configutation instance $configuration = new Configuration(); $configuration->loadFromFile($file); // merge the instance with this one $this->merge($configuration); // return this instance return $configuration; }