-
Notifications
You must be signed in to change notification settings - Fork 351
Add RLP Strategies for URL generation #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@drotter there is no load method in rlpmapper and rlpstrategy |
|
||
use Exception; | ||
|
||
class ResourceLocatorNotExistsException extends Exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wachterjohannes ... I would prefer NotFoundException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chirimoya we have build our own exception class tree for rest api! I think you should use the everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wachterjohannes Sorry, maybe my comment was misleading. A own exception is fine, but I would choose another name: ResourceLocatorNotFoundException (also the server must respond with a 404 not found)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chirimoya @drotter FIXED: cc912ad
* @param $language string read data for given language | ||
* @return StructureInterface | ||
*/ | ||
public function read($id, $language) | ||
public function load($id, $portal, $language) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wachterjohannes ... to be consistent use $uuid instead $id? /cc @drotter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable, +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chirimoya @drotter FIXED: 3d66053
@chirimoya ready to merge |
[FEATURE] Introduced TestContact
Always index webspaceKey
Updated to new bundle structure
Updated to new bundle structure
[FEATURE] Introduced TestContact
Always index webspaceKey
* immplemented by-type and by-template route-generator * fixed testcases to fit new sulu * added tests for custom-route-generators * changed config from service-id to alias * changed alias of route_generators * changed alias of route_generators
Add RLP Strategies for URL generation: