Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Contributors#447

Closed
snapshotpl wants to merge 42 commits intozendframework:masterfrom
snapshotpl:contributors
Closed

Contributors#447
snapshotpl wants to merge 42 commits intozendframework:masterfrom
snapshotpl:contributors

Conversation

@snapshotpl
Copy link
Contributor

Site about us!

Copy link
Member

Choose a reason for hiding this comment

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

The convention is underscores for keys of configs

Copy link
Member

Choose a reason for hiding this comment

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

@snapshotpl

Agree with @Ocramius' suggestion!

Also, as far as I can see, this configuration is used by

  • Controller\ContributorsController
  • View\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?

Copy link
Member

Choose a reason for hiding this comment

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

zf_modules is also a bit generic IMO

@Ocramius
Copy link
Member

Ocramius commented Mar 2, 2015

Looks sane, tho tests are missing

Copy link
Member

Choose a reason for hiding this comment

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

@snapshotpl

Should be Contributors, you're missing an r here. 😉

@localheinz
Copy link
Member

@snapshotpl

The page looks a bit empty at the moment

screen shot 2015-03-03 at 13 17 24

Do you think it would make sense - other than repeating GitHub's contributors page - to show a randomized list of contributor avatars?

@snapshotpl
Copy link
Contributor Author

@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
@localheinz
Copy link
Member

@snapshotpl

Dang, snapshotpl#8 left the PR in an unmergeable state, probably because of the changes in #445.

@localheinz
Copy link
Member

@Ocramius

Since this includes contributions from me, do you want to take a look again?

@snapshotpl

If @Ocramius has no objections, I would be happy to merge and deploy, we can still re-iterate!

@Ocramius
Copy link
Member

Ocramius commented Mar 4, 2015

@localheinz it needs a rebase (with --preserve-merges, careful!)

@localheinz
Copy link
Member

@Ocramius

About the rebase, shall I do it before merge or ask @snapshotpl to do it?

@Ocramius
Copy link
Member

Ocramius commented Mar 4, 2015

Your decision :-)
On Mar 4, 2015 8:33 AM, "Andreas Möller" notifications@github.com wrote:

@Ocramius https://github.com/Ocramius

About the rebase, shall I do it before merge or ask @snapshotpl
https://github.com/snapshotpl to do it?


Reply to this email directly or view it on GitHub
#447 (comment)
.

@localheinz
Copy link
Member

@snapshotpl

Rebasing and merging this in a minute!

localheinz added a commit to localheinz/modules.zendframework.com that referenced this pull request Mar 4, 2015
@localheinz
Copy link
Member

Merged with 5a77073.

@localheinz localheinz closed this Mar 4, 2015
@localheinz
Copy link
Member

And, thank you very much, @snapshotpl!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants