-
Notifications
You must be signed in to change notification settings - Fork 130
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
[2.x] Support vendor class aliasing #88
Conversation
@GrahamCampbell Now you've changed the signature of |
No. They have default values, and the old code was totally broken out side of laravel anyway. This package was made specifically so tinker could be used outside of laravel/framework, so we need to support that. |
Alrighty. |
Ah yeah the fallbacks. Cool. You could have just asked for that. But hey, less for me to do. 🤘 |
Was quicker for me to just write the code than do a bad job of explaining how to do it. The clearest way for me to explain what I wanted was to write it. ;) |
Thanks! |
Thanks to you both 👍 |
This PR adds support for aliasing classes and namespaces inside the vendor directory.
Now if you're using a package within Tinker frequently you can add this sort of thing:
I wanted to add tests, but there weren't any so this also contains tests for existing functionality.
Not sure if the dummy config helper is the way to go, but it worked.
Closes #76