Skip to content

v2.1.0

Choose a tag to compare

@songecko songecko released this 17 Jun 13:58
· 7 commits to master since this release
b1a21d9

Highlights

  • 🔌 The Vendor REST API now works out of the box. The plugin self-registers its API
    Platform mapping, so admin CRUD (/api/v2/admin/vendors) and shop read endpoints
    (/api/v2/shop/vendors) are available with no extra configuration.
  • 📧 Manage vendor extra emails via the API, as an embedded writable collection.
  • 🖼️ New logo upload endpoint: POST /api/v2/admin/vendors/{slug}/logo (multipart/form-data).
  • 🌍 13 languages out of the box — added de, it, pt_BR, nl, pl, ru, ja, zh_CN, tr and ar
    on top of en/es/fr.
  • ✅ Sylius 2.2 support (alongside 2.0 and 2.1), tested on PHP 8.2 / 8.3 / 8.4.

Added

  • The plugin self-registers its API Platform mapping (Vendor admin CRUD + shop read endpoints).
  • extraEmails (embedded writable collection) and position exposed on the admin Vendor API.
  • Multipart logo upload endpoint POST /api/v2/admin/vendors/{slug}/logo, reusing the existing uploader.
  • Optional sitemap integration through VendorUrlProvider (for stefandoorn/sitemap-plugin).
  • Translations for 10 additional locales (de, it, pt_BR, nl, pl, ru, ja, zh_CN, tr, ar).
  • API functional tests and additional unit tests.
  • CHANGELOG.md, CONTRIBUTING.md, issue/PR templates and doc/api.md.

Changed

  • ⚠️ Renamed the vendor logo property logoNamelogoPath on Vendor and VendorInterface
    (and VendorLogoUploader), with a migration renaming the odiseo_vendor.logo_name column to
    logo_path.
  • Admin vendor form reorganised: extra emails under the General tab, logo at the top of the
    Profile tab, and the now-empty Media tab removed.
  • CI matrix extended to PHP 8.2, 8.3 and 8.4.

Removed

  • Dead VendorFormMenuBuilderEvent class and its unused service definition.

Fixed

  • "Add email" button label now resolves to the correct translation key.

Upgrade notes

  • Update any code calling getLogoName() / setLogoName() to getLogoPath() / setLogoPath().

  • Run the migrations after updating:

    bin/console doctrine:migrations:migrate
    

Full changelog: v2.0.0...v2.1.0