Skip to content

Mark most preview specific service as internal #7871

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

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Mar 28, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #
Related issues/PRs #
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Mark most preview specific services as internal.

Why?

There are some deep connections between service in the preview bundle, as we should keep the Public API as small as possible to make the maintainance here easier I suggest to mark most of the Preview specific services and how it is rendered as internal this may make it easier in future to single kernel setup.

The only connection point for bundles is mostly the PreviewObjectProviderInterface / PreviewDefaultsProviderInterface all other services are not used by devs.

@alexander-schranz alexander-schranz added the DX Affecting the end developer label Mar 28, 2025
@@ -11,6 +11,9 @@

namespace Sulu\Bundle\PreviewBundle\Preview\Object;

/**
* @internal No BC promises are given for this class. It may be changed or removed at any time.
*/
interface PreviewObjectProviderRegistryInterface
Copy link
Member Author

Choose a reason for hiding this comment

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

this will mostly be replaced by a service locator in one of @mamazu PRs.

@alexander-schranz alexander-schranz force-pushed the feature/mark-preview-services-as-internal branch from ddfefbd to f0bea05 Compare March 31, 2025 07:32
@alexander-schranz alexander-schranz marked this pull request as ready for review March 31, 2025 07:34
@alexander-schranz alexander-schranz force-pushed the feature/mark-preview-services-as-internal branch from 28684b6 to 6652a64 Compare March 31, 2025 07:45
@alexander-schranz alexander-schranz merged commit 7791beb into sulu:3.0 Mar 31, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants