Skip to content

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Sep 14, 2025

I just rebased #2944 in case it could help.

Closes #2941
Closes #2944

Credits to mbabker

Copy link

codecov bot commented Sep 14, 2025

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.55%. Comparing base (3ca38e8) to head (707ef35).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Sluggable/SluggableListener.php 88.88% 2 Missing ⚠️
src/Sluggable/Util/Urlizer.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2985      +/-   ##
==========================================
+ Coverage   78.49%   78.55%   +0.05%     
==========================================
  Files         168      169       +1     
  Lines        8813     8828      +15     
==========================================
+ Hits         6918     6935      +17     
+ Misses       1895     1893       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

CHANGELOG.md Outdated
## [Unreleased]

### Changed
- Replace the `behat/transliterator` with `symfony/string` for the Sluggable extension for its default transliteration and urlization steps"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Replace the `behat/transliterator` with `symfony/string` for the Sluggable extension for its default transliteration and urlization steps"
- Sluggable: Replaced abandoned `behat/transliterator` with `symfony/string` for default transliteration and urlization steps (#2985)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks updated

@phansys phansys merged commit ac95304 into doctrine-extensions:main Sep 14, 2025
23 checks passed
@phansys
Copy link
Collaborator

phansys commented Sep 14, 2025

Thank you @VincentLanglet, and, special thanks to @mbabker! ❤️

@VincentLanglet
Copy link
Contributor Author

Thanks you @phansys !

Do you need help to maintain this repository ? 😄

@phansys
Copy link
Collaborator

phansys commented Sep 14, 2025

Hey @VincentLanglet!
Of course, help is always welcome.

I don't have the required permissions to add new maintainers in this repository. I'll try to check who could send the invites.

Thanks!

@alcohol
Copy link

alcohol commented Oct 3, 2025

I had to change lines 124-129 of the RelativeSlugHandler to get the same old behaviour we used to have.. any idea why?

  if (isset($this->usedOptions['urilize']) && $this->usedOptions['urilize']) {
      $slug = call_user_func_array(
          $this->originalTransliterator,
          [$slug, $separator, $object]
      );
      // <added>
      $slug = call_user_func_array(
          $this->sluggable->getUrlizer(),
          [$slug, $separator, $object]
      );
      // </added>
  }

@mbabker
Copy link
Contributor

mbabker commented Oct 3, 2025

I had to change lines 124-129 of the RelativeSlugHandler to get the same old behaviour we used to have.. any idea why?

Probably the same reason I had to add the getUrlizer() call a few lines above that (#2944 (review) for reference). It looks like that code branch has no test coverage, but it probably should be fixed here.

@alcohol
Copy link

alcohol commented Oct 3, 2025

Yeah I was also thinking there might be a test scenario missing. Haven't had time to dive into this further yet though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace usage of behat/transliterator to generate the slug

5 participants