Skip to content
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

Allow overriding SlugService by resolving it from the service container #617

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justRau
Copy link

@justRau justRau commented Dec 10, 2024

When instantiated using new, the SlugService cannot be overridden by app code.
Resolving SlugService from the container, allows for overriding.

@cviebrock
Copy link
Owner

Thanks for the PR @justRau. Can you look into why the tests are failing?

@justRau
Copy link
Author

justRau commented Dec 16, 2024

@cviebrock I've triggered Actions on my fork's new branch (https://github.com/justRau/eloquent-sluggable/commits/refs/heads/justRau-patch-2/) from master branch and looks like it is a general problem, because the same tests fail with the same messages, even though that branch does not have the code that was changed in this PR.

Tests failure on basically the master branch: https://github.com/justRau/eloquent-sluggable/actions/runs/12354157246/job/34474862720

I currently have no idea, why that error happens.

@justRau
Copy link
Author

justRau commented Dec 16, 2024

Also, I'm running the code from this PR in a production application using https://github.com/symplify/vendor-patches, all's ok.

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.

2 participants