-
Notifications
You must be signed in to change notification settings - Fork 9
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
Call to undefined method [package] in L5 #437
Comments
I am receiving the same error here. Same error on all functions |
You can see on this commit: laravel/framework@3a0afc2 |
@jonathanpmartins thank you for pointing it out usefull information must have missed that commit. |
@jonathanpmartins I know that, they are moving workbench in a standalone package. |
Yeah, I like to learn that better! |
Configuration is loaded manually now for packages. |
Is there a way to fix this? Or should we wait till the framework is fixed? |
@abishekrsrikaanth better wait till release |
@RyanThompson how do you 'manually' load configuration for a package then? I'm unclear if there are steps involved for how to use this package (or others) in L5 that I don't know about...or if there are changes coming to L5 that will restore the L4 method (adding the package service provider to app/config/app.php providers array?) |
@jcorry Here are a couple examples of how I do it in our software: https://github.com/anomalylabs/streams-platform/blob/master/src/Addon/AddonConfiguration.php Could be as easy as this though: https://github.com/anomalylabs/streams-platform/blob/master/src/Addon/AddonConfiguration.php (or use files->getRequire there too) His response indicated no, it's all on us now. But I've heard him suggest otherwise but only as a "maybe". My guess it 5.1 or something might reintroduce a more convenient method. |
Thanks, that helps...but what does the round trip from composer install [package] to calling the package methods through its Facade look like? I'm not 100% clear on this and haven't found any resources that make it clear. |
Not sure what you mean regarding the round trip - but you can register facades in your service provider manually if that's what you are asking: http://laravel.com/docs/4.2/facades#creating-facades Hope this helps! |
Thanks @RyanThompson. I'm not sure where I am falling down, but am unclear how to use a package (like Way Generators) anymore. If I add the package's serviceprovider class to the 'providers' array in my app config, it fails. If I comment out the line calling package() in the package's service provider, it still fails. I'm unclear whether there is a new method for registering/incorporating package service providers in L5. What do you do, after installing a package with composer, to make it available in your L5 app? |
Anyone have a copy-pastable solution for this package yet? |
I've got a package which can fix this - https://github.com/morrislaptop/LaravelFivePackageBridges |
I've try to comment $this->package('way/generators') in boot method
But then you have new errors, like:
The text was updated successfully, but these errors were encountered: