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

Refactored Router to be a non-static class #15

Merged
merged 8 commits into from
May 13, 2023

Conversation

CommandString
Copy link
Member

Why?

In attempts to make all of the libraries in TNAPF comply with PSR and be usable in any circumstance. It only makes sense to convert Router into a non-static class so it can be used with PSR-15. Which will be implemented soon

@CommandString CommandString requested a review from xHeaven May 12, 2023 08:56
src/Routing/Route.php Show resolved Hide resolved
src/Routing/Route.php Outdated Show resolved Hide resolved
tests/RouteTests.php Show resolved Hide resolved
tests/RouteTests.php Show resolved Hide resolved
@CommandString CommandString requested a review from xHeaven May 12, 2023 11:41
Copy link
Member

@xHeaven xHeaven left a comment

Choose a reason for hiding this comment

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

The changed files are looking good now, but please do a commit with the updated examples as well. Currently, you are calling non-static methods statically in your examples.
Update the README too.

@CommandString
Copy link
Member Author

The changed files are looking good now, but please do a commit with the updated examples as well. Currently, you are calling non-static methods statically in your examples. Update the README too.

Examples are getting nuked and there's gonna be more changes which is why the README hasn't been updated

@CommandString CommandString requested a review from xHeaven May 13, 2023 21:17
Copy link
Member

@xHeaven xHeaven left a comment

Choose a reason for hiding this comment

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

Alright then, sounds good. Approved.

@CommandString CommandString merged commit 5ef993f into full-coverage May 13, 2023
@CommandString CommandString deleted the remove-static branch May 13, 2023 21:19
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.

2 participants