-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on re-doing package handling.
- Loading branch information
1 parent
1b9562f
commit 3a0afc2
Showing
1 changed file
with
0 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm so excited to see the new way of doing packages.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have two packages that broke down with this commit:
https://github.com/dimsav/laravel-translatable
https://github.com/JeffreyWay/Laravel-4-Generators
Hope we get e new way of do it soon!
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathanpmartins Just about every laravel pacakge in existance was broken by this. 20 of mine were broken...
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, 6 of the packages I was using broke as well. Temporarily either removed or hacked them to get things working, but would like to see a fix (either instructions for changing the package initialization/configuration so I can fork and fix or adding a deprecated version of these methods back until package maintainers get a chance to change against specs).
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 What Taylor just said.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, understood @taylorotwell. Targeting a new application for L5 and know this can happen. Keep up the good work. 👍
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice word @taylorotwell
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taylor, thanks for work. Can you tell when will be beta-release ?
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On that note - @taylorotwell - any indication when Laravel 5 will go to stable release?
I've recently started learning Laravel and want to start building the new system using it, but not sure whether to wait for version 5 or start with 4 and then move things across. If you could give me some rough idea that would be fab.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second half of January 2015.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - many thanks @GrahamCampbell !
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell unfortunately some of us started working on projects with laravel 5 back when it was supposed to be released in November and have invested too much to back-port it to 4.2. I might have to at this point, though. We were going to be relying on laravel cashier and as I was plugging it in tonight I found this change to have broken it.
I'm not mad and I appreciate everything you're doing. I'm just pointing out that there was a time when the expectation for the release timeline was different.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogue780 Revert to the commit before this change to continue working with packages; though obviously won't be getting any updates moving forward until L5 is either fully released or gets the re-worked package handling pushed.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaidesu because i'd have to roll back laravel/laravel to a similar point and that would cause too much refactoring at this point. It might be just as much as moving stuff to 4.2 tbh.
Again, I'm not complaining and I'm not blaming anyone but myself. I took a risk and it didn't pay off the way I wanted it too. I was just trying to articulate why some might get frustrated by this change since the timeline got pushed back.
As for me, I'm probably just going to use stripe/stripe-php directly instead of laravel/cashier and press on. I'm relying too much on route and event annotations as well as elixir at this point and don't want to change up my workflow.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea on just how much package handling is going to change? I don't have any 3rd party packages in my Laravel 5 test project, but I'm writing a new package. If there will be too many changes from the way packages were created in 4.2, I'm going to wait for a stable(ish) release.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darkwinternight i made migration of big package from 4.2 to 5.0 and it was very very easy - about 1 day of work
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pilot911 Can you explain more details ?
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to migrate without actually changing much, but it doesn't mean you should. I'd recommend you change over to use the new contracts where possible for example, and embrace the new stuff 5.0 brings.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathanpmartins just updated softDelete in model with trait from 5.0, replaced \View::make()->render() with view()->render() and updated custom user class with new field - that's all 👍 but you can replace some router's filter with middlewares like csrf - that's all very simple... but for developing package you must use only this commit:
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do realize that this is exactly what we are trying to avoid, yes?
The changes you speak of are not really required for L5 (i.e., the
View
facade still exists).3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darkwinternight i know, but why don't use new features ? we use them and i wrote answer about our practice
does anybody know Taylor's paypal ?
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
view()
is merely a helper, you're still depending on the framework. Instead, you should use the new L5 contracts:But I digress. The point of this discussion is that it is attached to the commit 3a0afc2, which removes (among others) the
package()
method. Essentially you're saying we should use an older commit so as not to break anything (which by the way I was suggesting 2 weeks ago). That is not very helpful.3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darkwinternight you're right
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to see the new package conventions for 5! Don't leave it too long :)
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted back to laravel/framework": "dev-master#846c935194a036901ba6b4397c8897fa51e19111 but the env method in this commit is not found. It works if I just the $_ENV variable instead though.
Anyone know how to get env() working on this commit?
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nops, @calvinchoy I think the env() function enter after it.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, well guess it will be a temporary tradeoff. Use the old commit to keep necessary packages working and manually change env to $_ENV.
Hope it won't be too much work to port to the final version from this this commit =/
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's clear now that there is no default way to handle packages in Laravel 5. Handle your package the way you like.
So no need to refer to the 846c935 commit, just update to the latest and try to get your package working using a ServiceProvider.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answer here https://laracasts.com/discuss/channels/general-discussion/l5-latest-commit-breaks-if-using-waygenerators-or-image-internvention/replies/23453
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You actually need to do this in the register method, not the boot method otherwise you won't be able to customise the config in your app...
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, but can you explain ?
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just put up an article with a possible workaround to this problem - https://medium.com/@morrislaptop/bridging-laravel-4-packages-to-laravel-5-2081f19643c6
UPDATE: I've made this a package which can be easily dropped in - https://github.com/morrislaptop/LaravelFivePackageBridges
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A much better solution would be for everyone to use https://github.com/orchestral/config. I've moved all my laravel 5 packages over to it.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to solve the problem: BadMethodCallException in ServiceProvider.php line 226:
Call to undefined method [package].
The package is laravel-jqgrid
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See http://laravel.com/docs/master/packages @arceYerson
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a problem as such. It means the package you're trying to use is for Laravel 4 instead of Laravel 5.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely the maintainer set the wrong version constraints.
3a0afc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would a package maintainer upgrade a Laravel 4 package to Laravel 5? I'm still looking for that.