public function addLocation($contents = array(), $old_contents = null) { if ($old_contents && @$this->app->compat_42) { return $this->base_location->addRelativeLocation($contents, $old_contents); } /** @type PathFinder_Location $loc */ $loc = $this->add('PathFinder_Location'); return $loc->defineContents($contents); }
/** * Add new location with additional resources. * * @param array $contents * @param mixed $obsolete * * @return PathFinder_Location */ public function addLocation($contents, $obsolete = UNDEFINED) { if ($obsolete !== UNDEFINED) { throw $this->exception('Use a single argument for addLocation'); } return $this->pathfinder->addLocation($contents); }