Conversation
There was a problem hiding this comment.
The convention is underscores for keys of configs
There was a problem hiding this comment.
Agree with @Ocramius' suggestion!
Also, as far as I can see, this configuration is used by
Controller\ContributorsControllerView\Helper\GitHubUrlFactory
and I'm not sure whether that's a good thing!
See, if you changed the key zf-modules to anything, it would require a change now in these two factories, maybe this is asking for a service which returns a value object? Sounds like overkill, but maybe it's better?
return [
'zfmodules_repository' => [
'owner' => 'zendframework',
'name' => 'modules.zendframework.com',
];<?php
namespace ZfModule\Entity;
class Repository
{
private $owner;
private $name;
public function __construct($owner, $name)
{
$this->owner = $owner;
$this->name = $name;
}
public function owner()
{
return $this->owner;
}
public function name()
{
return $this->name;
}
}And then the factories just retrieve that thing and use it for whatever they need to do with it?
There was a problem hiding this comment.
zf_modules is also a bit generic IMO
|
Looks sane, tho tests are missing |
There was a problem hiding this comment.
Should be Contributors, you're missing an r here. 😉
|
Do you think it would make sense - other than repeating GitHub's contributors page - to show a randomized list of contributor avatars? |
|
@localheinz there should be pretty nice list of 36 avatars. I don't know what happend |
…helper Fix: GitHubRepositoryUrl view helper
Fix: Sort out factory for GitHubRepositoryUrl view helper
Enhancement: Add tests for new functionality in RepositoryRetriever
|
Dang, snapshotpl#8 left the PR in an unmergeable state, probably because of the changes in #445. |
Fix: Maintain alphabetical order of service definitions
|
Since this includes contributions from me, do you want to take a look again? If @Ocramius has no objections, I would be happy to merge and deploy, we can still re-iterate! |
|
@localheinz it needs a rebase (with |
|
About the rebase, shall I do it before merge or ask @snapshotpl to do it? |
|
Your decision :-)
|
|
Rebasing and merging this in a minute! |
|
Merged with 5a77073. |
|
And, thank you very much, @snapshotpl! |

Site about us!