Skip to content

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

Merged
merged 34 commits into from
Nov 18, 2013
Merged

Conversation

wachterjohannes
Copy link
Member

Add RLP Strategies for URL generation:

  • test coverage
  • finish the code
  • gather feedback for my changes
  • submit changes to the documentation
Q A
Bug fix? no
New feature? yes
Tests pass? yes
Fixed tickets none
Doc https://github.com/sulu-cmf/docs/blob/master/detail-specification/300-portal/DET-304-rlp-strategies.md

@wachterjohannes
Copy link
Member Author

@drotter there is no load method in rlpmapper and rlpstrategy

@ghost ghost assigned chirimoya Nov 14, 2013

use Exception;

class ResourceLocatorNotExistsException extends Exception
Copy link
Member

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

Copy link
Member Author

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?

Copy link
Member

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)

Copy link
Member Author

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

* @param $language string read data for given language
* @return StructureInterface
*/
public function read($id, $language)
public function load($id, $portal, $language)
Copy link
Member

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds reasonable, +1

Copy link
Member Author

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

@wachterjohannes
Copy link
Member Author

@chirimoya ready to merge

@chirimoya chirimoya merged commit 8116956 into develop Nov 18, 2013
@chirimoya chirimoya deleted the feature/rlp-strategies branch November 18, 2013 09:53
wachterjohannes added a commit that referenced this pull request Aug 14, 2014
chirimoya added a commit that referenced this pull request Aug 14, 2014
chirimoya added a commit that referenced this pull request Sep 30, 2014
wachterjohannes added a commit that referenced this pull request Sep 30, 2014
wachterjohannes added a commit that referenced this pull request Sep 30, 2014
chirimoya added a commit that referenced this pull request Oct 31, 2014
wachterjohannes added a commit that referenced this pull request Oct 31, 2014
wachterjohannes added a commit that referenced this pull request Oct 31, 2014
chirimoya added a commit that referenced this pull request Oct 31, 2014
wachterjohannes added a commit that referenced this pull request Oct 31, 2014
wachterjohannes added a commit to wachterjohannes/sulu that referenced this pull request May 8, 2017
* 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
alexander-schranz added a commit to alexander-schranz/sulu that referenced this pull request Feb 22, 2024
alexander-schranz pushed a commit to alexander-schranz/sulu that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants