Skip to content

[Task]: Deprecate unused method and exception in BundleLocator namespace#18861

Merged
fashxp merged 1 commit intopimcore:12.xfrom
jdreesen:deprecate-BundleLocatorInterface-getBundlePath
Dec 9, 2025
Merged

[Task]: Deprecate unused method and exception in BundleLocator namespace#18861
fashxp merged 1 commit intopimcore:12.xfrom
jdreesen:deprecate-BundleLocatorInterface-getBundlePath

Conversation

@jdreesen
Copy link
Copy Markdown
Contributor

@jdreesen jdreesen commented Dec 1, 2025

Because of #18858 I had a closer look at the Pimcore\HttpKernel\BundleLocator.

It seems like \Pimcore\HttpKernel\BundleLocator\InvalidArgumentException is not used anywhere, so I deprecated it.

Also \Pimcore\HttpKernel\BundleLocator\BundleLocatorInterface::getBundlePath() is not used anywhere, so I deprecated it too.

The only place where Pimcore\HttpKernel\BundleLocator\BundleLocatorInterface is actually used seems to be the \Pimcore\Document\Editable\EditableHandler and it already uses BundleLocatorInterface::getBundle()->getPath().

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 1, 2025

Review Checklist

  • Target branch (11.5 for bug fixes, others 12.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@jdreesen
Copy link
Copy Markdown
Contributor Author

jdreesen commented Dec 1, 2025

/cc @fashxp

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 1, 2025

@fashxp fashxp added the Task label Dec 9, 2025
@fashxp fashxp added this to the 12.3.0 milestone Dec 9, 2025
@fashxp fashxp self-assigned this Dec 9, 2025
@fashxp
Copy link
Copy Markdown
Member

fashxp commented Dec 9, 2025

failing tests can't be related.

@fashxp
Copy link
Copy Markdown
Member

fashxp commented Dec 9, 2025

thx very much!

@fashxp fashxp merged commit ac4dfce into pimcore:12.x Dec 9, 2025
13 of 24 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2025
@jdreesen jdreesen deleted the deprecate-BundleLocatorInterface-getBundlePath branch December 10, 2025 00:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants