Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the way the router and route collection determine the current HTTP verb. #2024

Merged
merged 1 commit into from
May 24, 2019

Conversation

lonnieezell
Copy link
Member

Refactor the way the router and route collection determine the curren…t HTTP Verb.

Closes #2022
Fixes #2021

@lonnieezell lonnieezell merged commit cb3616f into develop May 24, 2019
{
$this->collection = $routes;

$this->controller = $this->collection->getDefaultController();
$this->method = $this->collection->getDefaultMethod();

$this->collection->setHTTPVerb($request->getMethod() ?? 'get');
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to default this to strtolower($_SERVER['REQUEST_METHOD']) instead of get?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really. Good point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PR#2012 caused 404 exception in spark
2 participants