8000 L5.4: Rename the router's middleware method to aliasMiddleware by rhwilr · Pull Request #1316 · dingo/api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

L5.4: Rename the router's middleware method to aliasMiddleware #1316

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

Merged
merged 3 commits into from
Jan 26, 2017
Merged

L5.4: Rename the router's middleware method to aliasMiddleware #1316

merged 3 commits into from
Jan 26, 2017

Conversation

rhwilr
Copy link
Contributor
@rhwilr rhwilr commented Jan 25, 2017

In Laravel 5.4 the routers middleware Method was renamed to aliasMiddleware see: laravel/framework@06303d9

In addition to this I updated the composer version constraints to allow illuminate 5.4 components to be installed which should make this package Laravel 5.4 compatible. I could not find any other issues in my testing.

Also this PR: dingo/blueprint#54

* with Laravel < 5.4 check if aliasMiddleware exists since this
* method has been renamed.
*
* @param $name
Copy link
Contributor

Choose a reason for hiding this comment

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

@param string $name
@param string $class
  
@return \Illuminate\Routing\Router

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx, I added the typehints

@jasonlewis jasonlewis merged commit a852013 into dingo:master Jan 26, 2017
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.

3 participants
0