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

Commit

Permalink
Merge pull request #56 from symfony-cmf/remove_typehint
Browse files Browse the repository at this point in the history
Removed type hint to enable redirect target to be a content document
  • Loading branch information
dantleech committed Oct 28, 2015
2 parents 9cdf694 + 1e43b5f commit 5d01aa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Changelog
=========

dev-master
----------

* **2015-09-15**: [BC Break] Removed type hint from `AutoRouteInterface::setRedirectTarget()`
to allow the redirect target to be a content document.
* **2015-09-05**: "Leave Redirect" defunct route handler now migrates any children
of the original route.
* **2015-08-23**: `AdapterInterface::translateObject()` now has to return the
Expand All @@ -13,7 +12,7 @@ dev-master
* **2015-04-19**: Added `allow_empty` option to permit empty values and
remove any trailing slash.
* **2015-03-14**: [BC Break] The adapter now accepts the `UriContext` object for
`createRoute` and as an additional parameter to `findRouteForUri`.
`createRoute()` and as an additional parameter to `findRouteForUri()`.
* **2015-03-14**: Changed adapter interface to accept UriContext objects
instead of or in addition to URI strings.
* **2015-01-29**: Added SymfonyContainerParameterTokenProvider for retrieving
Expand Down
4 changes: 2 additions & 2 deletions Model/AutoRouteInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,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.
*
* @param AutoRouteInterface AutoRoute to redirect to.
*/
public function setRedirectTarget(AutoRouteInterface $autoTarget);
public function setRedirectTarget($autoTarget);

/**
* Return the redirect target (when the auto route is of type
Expand Down

0 comments on commit 5d01aa1

Please sign in to comment.