Add feed mapper#414
Conversation
There was a problem hiding this comment.
i think this method is not necessary and the name don't indicates there actually return - there is no need to wrap it into a sep. method - no?
|
@snapshotpl can u please provide tests for this feature? |
|
@ins0 Test provided, but Travis looks dead ;) |
There was a problem hiding this comment.
could you please update the url too? zfmodules.com
There was a problem hiding this comment.
I think we should create a new PR with this update in whole project
There was a problem hiding this comment.
yeah sounds like a better plan 💯
There was a problem hiding this comment.
@snapshotpl just searched inside the project and actually this is the only file that contains the url and needs an update ^^
There was a problem hiding this comment.
There is also link in README
There was a problem hiding this comment.
Maybe serverUrl is a best solution
There was a problem hiding this comment.
mmm you are in Controller..
You can use
$url = $this->url()->fromRoute('home', [], ['force_canonical', true]);@ins0 print the url into the application in my opinion is not a good idea.. But I don't remember if this solution works
PS same stuff for the setFeedLink
$url = $this->url()->fromRoute('feed', [], ['force_canonical', true]);There was a problem hiding this comment.
@gianarb 👍
@snapshotpl if u like to create a new pr with the url just say otherwise i would do this 😃
There was a problem hiding this comment.
Change in progress...
|
thanks @snapshotpl for providing tests 👍 - this looks good from my point of view 😃 |
… to github), author, id as owner/repo
There was a problem hiding this comment.
i would suggest to name this more explicit and not simple $url
|
@ins0 what about now? :) |
There was a problem hiding this comment.
slightly better but still odd. how about sprintf('%s/%s', $module->getOwner(), $moduleName) or we extend the module entity to get a full repository name - but not sure about that. /cc @Ocramius @localheinz
There was a problem hiding this comment.
I like idea with additional method i module entity. We can reuse it in views.
There was a problem hiding this comment.
yeah i ike this idea as well, there should be no reason to not follow this way 👍
There was a problem hiding this comment.
If the module pseudo-identifier is this one, then yes, this should be part of the Module model API
|
My PR needs review :-) |
|
@ins0 who said that Module entity can come from db? |
|
Merged, thanks @snapshotpl! |
No description provided.