Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Extract link url building code #125

Merged
merged 1 commit into from
Jul 6, 2016
Merged

Extract link url building code #125

merged 1 commit into from
Jul 6, 2016

Conversation

neeckeloo
Copy link
Contributor

  • extract link url building logic into specific class
  • fix parameters used when using url helper in Hal plugin (missing options param)
  • remove reflection usage in unit tests

These changes prevent to have view helpers, used to generate urls, as dependencies of several classes and keep the url building logic in only one place.

{
$this->urlHelper = $helper;
return $this;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a BC break, unfortunately. I think it's likely okay, as it's undocumented functionality, and mainly to serve internal processes, but if anybody was supplying their own helpers previously, this now won't work.

When I merge, I'll re-instate these, but have them throw an exception, indicating what changes they will need to make.

@weierophinney weierophinney added this to the 1.4.0 milestone Jul 6, 2016
@weierophinney weierophinney self-assigned this Jul 6, 2016
@weierophinney weierophinney merged commit 3514701 into zfcampus:develop Jul 6, 2016
weierophinney added a commit that referenced this pull request Jul 6, 2016
Extract link url building code

Conflicts:
	src/Plugin/Hal.php
weierophinney added a commit that referenced this pull request Jul 6, 2016
weierophinney added a commit that referenced this pull request Jul 6, 2016
@neeckeloo neeckeloo deleted the feature/extract-link-url-building branch July 7, 2016 08:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants