Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Removed type hint to enable redirect target to be a content document #56

Merged
merged 2 commits into from
Oct 28, 2015

Conversation

dantleech
Copy link
Member

Fix for #43

Currently we only support creating a redirect to another route. This means that if a route is renamed 50 times and somebody visits the initial route, a chain of 50 route documents will need to be resolved.

With this change it will be possible for the adapter to assign the content as the redirect target.

@dbu
Copy link
Member

dbu commented Sep 18, 2015

i fear that this is a BC break for anybody implementing the interface, as the implementation may not narrow down what is allowed. but it does make a lot of sense to do it like this. so maybe get the bundle ready and declare this lib conflicts with the bundle < 1.1?

@@ -59,12 +59,12 @@ public function getAutoRouteTag();
public function setType($mode);

/**
* For use in the REDIRECT mode, specifies the AutoRoute
* For use in the REDIRECT mode, specifies the routable object
* that the AutoRoute should redirect to.
Copy link
Member

Choose a reason for hiding this comment

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

maybe specify who's job it is to ensure that $autoTarget is a valid target?

@dantleech
Copy link
Member Author

Yeah, it certainly is a BC break and we would be bad to do it .. could also be seen as a BC breaking bug fix. Alternatively we could just introduce a new method and deprecate the current one, but it already has the best name.

@dbu
Copy link
Member

dbu commented Sep 18, 2015

i would be ok with considering it a BC breaking bugfix if we do a big note in the CHANGELOG and make sure to conflict with the routing-auto-bundle < 1.1 in composer.json to avoid a mess.

@dantleech
Copy link
Member Author

@wouterj any opinion on this?

@dantleech
Copy link
Member Author

ping @wouterj

@wouterj
Copy link
Member

wouterj commented Oct 9, 2015

👍 to see this as a BC breaking bug fix, but please add a more clear BC break warning in the CHANGELOG (creating an UPGRADE-1.1.md file seems overkill here).

@wouterj
Copy link
Member

wouterj commented Oct 28, 2015

@dantleech I've added [BC Break] to the changelog, feel free to merge.

dantleech added a commit that referenced this pull request Oct 28, 2015
Removed type hint to enable redirect target to be a content document
@dantleech dantleech merged commit 5d01aa1 into master Oct 28, 2015
@dantleech dantleech removed the review label Oct 28, 2015
@dantleech
Copy link
Member Author

Cheers Wouter

@dantleech dantleech deleted the remove_typehint branch October 28, 2015 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants