Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Guard-Assertions #172

Merged
merged 7 commits into from
Oct 17, 2013

Conversation

UFOMelkor
Copy link
Contributor

Makes it possible to specify assertions direct at guard configuration.

@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling 072a896 on UFOMelkor:feature/assertions-for-guards into 02aaf1f on bjyoungblood:master.

@Ocramius
Copy link
Contributor

@UFOMelkor the patch looks really good! There's just one thing that bothers me, and it is that we're duplicating code between the Controller and the Route guard - can you try to refactor that out?

@UFOMelkor
Copy link
Contributor Author

@Ocramius An AbstractGuard-class would be ok for you?

@Ocramius
Copy link
Contributor

@UFOMelkor I think that could do the trick, yes

@Ocramius
Copy link
Contributor

Please check if you can also reduce the amount of test code starting from that

@UFOMelkor
Copy link
Contributor Author

I will continue at home, got some trouble with running tests here

@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling e9e17ce on UFOMelkor:feature/assertions-for-guards into 02aaf1f on bjyoungblood:master.

@UFOMelkor
Copy link
Contributor Author

@Ocramius
Sorry for the long delay, university stuff has cropped up. May you give me a hint about refactoring of test-cases?

@Ocramius
Copy link
Contributor

@UFOMelkor won't nitpick further on the test cases. But a rebase will be needed :-)

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 53b1eb2 on UFOMelkor:feature/assertions-for-guards into * on bjyoungblood:master*.

@UFOMelkor
Copy link
Contributor Author

@Ocramius Does it look good so? It was my first rebase …

$this->serviceLocator = $serviceLocator;

foreach ($rules as $rule) {
$rule['roles'] = (array) $rule['roles'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Align = signs, remove empty newline after this line

@Ocramius
Copy link
Contributor

Is the abstract class fully covered? I saw coverage decreased

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c459f9b on UFOMelkor:feature/assertions-for-guards into * on bjyoungblood:master*.

@UFOMelkor
Copy link
Contributor Author

@Ocramius I handled your suggestions. The AbstractGuard is fully covered, coverage decreased because of less lines.

@UFOMelkor
Copy link
Contributor Author

I'll look at the cs fix.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling de48c02 on UFOMelkor:feature/assertions-for-guards into * on bjyoungblood:master*.

@UFOMelkor
Copy link
Contributor Author

@Ocramius fixed :-)

Ocramius added a commit that referenced this pull request Oct 17, 2013
@Ocramius Ocramius merged commit 776273e into bjyoungblood:master Oct 17, 2013
@Ocramius
Copy link
Contributor

Thanks!

@UFOMelkor UFOMelkor deleted the feature/assertions-for-guards branch October 17, 2013 12:44
@UFOMelkor
Copy link
Contributor Author

Same to you. Makes really fun to contribute to repositories supervised by you 👍

@Ocramius
Copy link
Contributor

@UFOMelkor I thought it was hell, given my aggressive reviews :-)

@UFOMelkor
Copy link
Contributor Author

@Ocramius Reviews are just technical, not personal und they are a great chance to improve my skills :-)

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.

3 participants