-
Notifications
You must be signed in to change notification settings - Fork 24
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
BeberleiExtensions doesn't register properly in laravel 5.7 #43
Comments
The problem was solved by creating a new ServiceProvider for Beberlei but registering it's methods the way Gedmo was doing it
|
Can reproduce this issue in laravel |
This is working fine for me. We would need a more detailed error and example code of what is not working to help more. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the following packages and have just upgraded into Laravel 5.7 (from 5.4)
I don't know why this is happening, but after upgrading into Laravel 5.7, I can no longer use
BeberleiExtensions
methods such asMonth
. I have removed the updated package service providers from my app config and kept beberlei and gedmo there. So far everything. Here is how I have registered the service providersThe Gedmo library is working fine, but Berberlei doesn't get registered properly, Both of them are added to Providers in bootstrap and are registered after LaravelDoctrine. But there is a difference in the way Beberlei is registered which makes this happen.
Beberlei is using the following code to register it's datetime functions in BeberleiExtensionsServiceProvider
While Gedmo is using a more sophisticated way of registering it's annotations (You can see it here)
The callback of
$manager->extendAll
is never called for some reason, while the callback of Gedmo is called properly.The text was updated successfully, but these errors were encountered: