Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Add support for invokable controllers #3

Merged
merged 4 commits into from Mar 6, 2018
Merged

Add support for invokable controllers #3

merged 4 commits into from Mar 6, 2018

Conversation

nesl247
Copy link
Contributor

@nesl247 nesl247 commented Mar 5, 2018

This adds support for invokable controllers.

I'm not happy with the invokable name being part of the route name though. I wanted to open this up so it could be discussed. Maybe action would be better as this pattern is known as ADR (Action/Domain/Responder)?

Closes #2.

Harrison Heck added 2 commits March 5, 2018 17:37
Tests don't need to be loaded during use. Also, autoload-dev is how
PhpStorm determines what directory holds the tests.
@nesl247 nesl247 changed the title Feature/support invokable controllers Add support for invokable controllers Mar 5, 2018
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 57037f9 on nesl247:feature/support-invokable-controllers into 8a1974f on kleijnweb:master.

@kleijnweb
Copy link
Owner

I agree. Feel free to rename. If you run a PSR2 check (I saw at least 1 misplaced brace), I would be happy to merge this.

Thanks :)

@nesl247
Copy link
Contributor Author

nesl247 commented Mar 6, 2018

There's actually a few PSR-2 style issues outside of the scope of this PR as well. I advise adding php-cs-fixer into the project and including that in CI.

I'm making the fixes to the code I touched.

@kleijnweb kleijnweb merged commit 94f6b8d into kleijnweb:master Mar 6, 2018
@nesl247 nesl247 deleted the feature/support-invokable-controllers branch March 6, 2018 19:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants