From 9ebae32c83fa4642257fe4db9aee913f6879387b Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 27 Jan 2024 21:27:22 -0500 Subject: [PATCH] [Live][Stimulus] Removing experimental & auditing internal classes --- src/LiveComponent/README.md | 5 +---- src/LiveComponent/doc/index.rst | 12 ++++-------- src/LiveComponent/src/Attribute/AsLiveComponent.php | 2 -- src/LiveComponent/src/Attribute/LiveAction.php | 2 -- src/LiveComponent/src/Attribute/LiveArg.php | 2 -- src/LiveComponent/src/Attribute/LiveListener.php | 2 -- src/LiveComponent/src/Attribute/LiveProp.php | 2 -- src/LiveComponent/src/Attribute/PostHydrate.php | 2 -- src/LiveComponent/src/Attribute/PreDehydrate.php | 2 -- src/LiveComponent/src/Attribute/PreReRender.php | 2 -- src/LiveComponent/src/ComponentToolsTrait.php | 2 -- src/LiveComponent/src/ComponentValidator.php | 2 -- .../src/ComponentValidatorInterface.php | 2 -- src/LiveComponent/src/ComponentWithFormTrait.php | 2 -- src/LiveComponent/src/DefaultActionTrait.php | 2 -- .../Compiler/ComponentDefaultActionPass.php | 2 -- .../Compiler/OptionalDependencyPass.php | 2 -- .../DependencyInjection/LiveComponentExtension.php | 2 -- .../EventListener/AddLiveAttributesSubscriber.php | 2 -- .../EventListener/DeferLiveComponentSubscriber.php | 5 +++++ .../InterceptChildComponentRenderSubscriber.php | 2 -- .../src/EventListener/LiveComponentSubscriber.php | 2 -- .../QueryStringInitializeSubscriber.php | 2 -- .../EventListener/ResetDeterministicIdSubscriber.php | 2 -- .../src/Exception/HydrationException.php | 2 -- .../src/Form/Type/LiveCollectionType.php | 2 -- .../Hydration/DoctrineEntityHydrationExtension.php | 5 +++++ .../src/Hydration/HydrationExtensionInterface.php | 3 +++ src/LiveComponent/src/LiveCollectionTrait.php | 2 -- src/LiveComponent/src/LiveComponentBundle.php | 2 -- src/LiveComponent/src/LiveComponentHydrator.php | 2 -- src/LiveComponent/src/LiveResponder.php | 2 -- .../src/Metadata/LiveComponentMetadata.php | 2 -- .../src/Metadata/LiveComponentMetadataFactory.php | 2 -- src/LiveComponent/src/Metadata/LivePropMetadata.php | 2 -- .../src/Twig/DeterministicTwigIdCalculator.php | 2 -- .../src/Twig/LiveComponentExtension.php | 2 -- src/LiveComponent/src/Twig/LiveComponentRuntime.php | 2 -- .../src/Util/ChildComponentPartialRenderer.php | 2 -- src/LiveComponent/src/Util/DehydratedProps.php | 2 -- src/LiveComponent/src/Util/FingerprintCalculator.php | 2 -- src/LiveComponent/src/Util/JsonUtil.php | 2 -- .../src/Util/LiveAttributesCollection.php | 2 -- .../src/Util/LiveControllerAttributesCreator.php | 2 -- src/LiveComponent/src/Util/LiveFormUtility.php | 2 -- .../src/Util/QueryStringPropsExtractor.php | 2 -- .../src/Util/TwigAttributeHelperFactory.php | 2 -- src/LiveComponent/src/ValidatableComponentTrait.php | 2 -- .../tests/Unit/Form/Type/LiveCollectionTypeTest.php | 2 -- .../tests/Unit/LiveCollectionTraitTest.php | 2 -- src/StimulusBundle/README.md | 2 +- src/StimulusBundle/doc/index.rst | 2 -- .../src/AssetMapper/ControllersMapGenerator.php | 2 -- .../src/AssetMapper/MappedControllerAsset.php | 4 ++-- .../src/AssetMapper/MappedControllerAutoImport.php | 2 +- .../AssetMapper/StimulusLoaderJavaScriptCompiler.php | 2 +- .../Compiler/RemoveAssetMapperServicesCompiler.php | 2 +- .../src/Twig/UxControllersTwigExtension.php | 2 +- .../src/Twig/UxControllersTwigRuntime.php | 2 +- src/StimulusBundle/src/Ux/UxPackageMetadata.php | 2 -- src/StimulusBundle/src/Ux/UxPackageReader.php | 2 -- 61 files changed, 26 insertions(+), 118 deletions(-) diff --git a/src/LiveComponent/README.md b/src/LiveComponent/README.md index fbb554ade4c..06c7d100181 100644 --- a/src/LiveComponent/README.md +++ b/src/LiveComponent/README.md @@ -1,15 +1,12 @@ # Live Components -**EXPERIMENTAL** This component is currently experimental and is -likely to change, or even change drastically. - Live components work with the [TwigComponent](https://symfony.com/bundles/ux-twig-component/current/index.html) library to give you the power to automatically update your Twig components on the frontend as the user interacts with them. Inspired by [Livewire](https://laravel-livewire.com/) and [Phoenix LiveView](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html). -Want a demo? Check out https://github.com/weaverryan/live-demo. +Want a demo? Check out https://ux.symfony.com/live-component. **This repository is a READ-ONLY sub-tree split**. See https://github.com/symfony/ux to create issues or submit pull requests. diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index ad9bb97fffa..b2e1ca61ff4 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -1,11 +1,6 @@ Live Components =============== -.. caution:: - - This component is currently experimental and is likely to change, or even - change drastically. - Live components builds on top of the `TwigComponent`_ library to give you the power to automatically update your Twig components on the frontend as the user interacts with them. Inspired by @@ -3459,8 +3454,10 @@ This bundle aims at following the same Backward Compatibility promise as the Symfony framework: https://symfony.com/doc/current/contributing/code/bc.html -However it is currently considered `experimental`_, meaning it is not -bound to Symfony's BC policy for the moment. +For JavaScript files, the public API (i.e. documented features and exports +from the main JavaScript file) is protected by the backward compatibility +promise. However, any internal implementation in the JavaScript files +(i.e. exports from internal files) is not protected. .. _`TwigComponent`: https://symfony.com/bundles/ux-twig-component/current/index.html .. _TwigComponent documentation: https://symfony.com/bundles/ux-twig-component/current/index.html @@ -3469,7 +3466,6 @@ bound to Symfony's BC policy for the moment. .. _`Twig Component`: https://symfony.com/bundles/ux-twig-component/current/index.html .. _`Twig Component mount documentation`: https://symfony.com/bundles/ux-twig-component/current/index.html#the-mount-method .. _`Symfony form`: https://symfony.com/doc/current/forms.html -.. _`experimental`: https://symfony.com/doc/current/contributing/code/experimental.html .. _`dependent form fields`: https://ux.symfony.com/live-component/demos/dependent-form-fields .. _StimulusBundle configured in your app: https://symfony.com/bundles/StimulusBundle/current/index.html .. _`localizes its URLs`: https://symfony.com/doc/current/translation/locale.html#translation-locale-url diff --git a/src/LiveComponent/src/Attribute/AsLiveComponent.php b/src/LiveComponent/src/Attribute/AsLiveComponent.php index 991b60459b7..0a22e1789ff 100644 --- a/src/LiveComponent/src/Attribute/AsLiveComponent.php +++ b/src/LiveComponent/src/Attribute/AsLiveComponent.php @@ -20,8 +20,6 @@ * @see https://symfony.com/bundles/ux-live-component * * @author Kevin Bond - * - * @experimental */ #[\Attribute(\Attribute::TARGET_CLASS)] final class AsLiveComponent extends AsTwigComponent diff --git a/src/LiveComponent/src/Attribute/LiveAction.php b/src/LiveComponent/src/Attribute/LiveAction.php index b2fcbbb2232..41af153451f 100644 --- a/src/LiveComponent/src/Attribute/LiveAction.php +++ b/src/LiveComponent/src/Attribute/LiveAction.php @@ -15,8 +15,6 @@ * An attribute to register a LiveAction method. * * @see https://symfony.com/bundles/ux-live-component/current/index.html#actions - * - * @experimental */ #[\Attribute(\Attribute::TARGET_METHOD)] class LiveAction diff --git a/src/LiveComponent/src/Attribute/LiveArg.php b/src/LiveComponent/src/Attribute/LiveArg.php index 97bf9df9bc5..bb32d546a5c 100644 --- a/src/LiveComponent/src/Attribute/LiveArg.php +++ b/src/LiveComponent/src/Attribute/LiveArg.php @@ -17,8 +17,6 @@ * @see https://symfony.com/bundles/ux-live-component/current/index.html#actions-arguments * * @author Tomas Norkūnas - * - * @experimental */ #[\Attribute(\Attribute::TARGET_PARAMETER)] final class LiveArg diff --git a/src/LiveComponent/src/Attribute/LiveListener.php b/src/LiveComponent/src/Attribute/LiveListener.php index 581c8eeb5ec..c8fbacda4f6 100644 --- a/src/LiveComponent/src/Attribute/LiveListener.php +++ b/src/LiveComponent/src/Attribute/LiveListener.php @@ -18,8 +18,6 @@ * method and re-render the component. * * @see https://symfony.com/bundles/ux-live-component/current/index.html#listeners - * - * @experimental */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class LiveListener extends LiveAction diff --git a/src/LiveComponent/src/Attribute/LiveProp.php b/src/LiveComponent/src/Attribute/LiveProp.php index 90afc678744..a5ea38162d9 100644 --- a/src/LiveComponent/src/Attribute/LiveProp.php +++ b/src/LiveComponent/src/Attribute/LiveProp.php @@ -15,8 +15,6 @@ * An attribute to mark a property as a "LiveProp". * * @see https://symfony.com/bundles/ux-live-component/current/index.html#liveprops-stateful-component-properties - * - * @experimental */ #[\Attribute(\Attribute::TARGET_PROPERTY)] final class LiveProp diff --git a/src/LiveComponent/src/Attribute/PostHydrate.php b/src/LiveComponent/src/Attribute/PostHydrate.php index 24732beaeaa..ca557099872 100644 --- a/src/LiveComponent/src/Attribute/PostHydrate.php +++ b/src/LiveComponent/src/Attribute/PostHydrate.php @@ -13,8 +13,6 @@ /** * An attribute to register a PostHydrate hook. - * - * @experimental */ #[\Attribute(\Attribute::TARGET_METHOD)] final class PostHydrate diff --git a/src/LiveComponent/src/Attribute/PreDehydrate.php b/src/LiveComponent/src/Attribute/PreDehydrate.php index b4061082969..5dcaf432b1a 100644 --- a/src/LiveComponent/src/Attribute/PreDehydrate.php +++ b/src/LiveComponent/src/Attribute/PreDehydrate.php @@ -13,8 +13,6 @@ /** * An attribute to register a PreDehydrate hook. - * - * @experimental */ #[\Attribute(\Attribute::TARGET_METHOD)] final class PreDehydrate diff --git a/src/LiveComponent/src/Attribute/PreReRender.php b/src/LiveComponent/src/Attribute/PreReRender.php index 07f561b1bb5..e2c3d24b7d9 100644 --- a/src/LiveComponent/src/Attribute/PreReRender.php +++ b/src/LiveComponent/src/Attribute/PreReRender.php @@ -16,8 +16,6 @@ * * This hook ONLY happens when rendering via HTTP: it does * not happen during the initial render of a component. - * - * @experimental */ #[\Attribute(\Attribute::TARGET_METHOD)] final class PreReRender diff --git a/src/LiveComponent/src/ComponentToolsTrait.php b/src/LiveComponent/src/ComponentToolsTrait.php index 30ff8ce45cd..ceb1c293c69 100644 --- a/src/LiveComponent/src/ComponentToolsTrait.php +++ b/src/LiveComponent/src/ComponentToolsTrait.php @@ -17,8 +17,6 @@ * Trait with shortcut methods useful for live components. * * @author Ryan Weaver - * - * @experimental */ trait ComponentToolsTrait { diff --git a/src/LiveComponent/src/ComponentValidator.php b/src/LiveComponent/src/ComponentValidator.php index a2bc86b7a55..ff7ce0b4031 100644 --- a/src/LiveComponent/src/ComponentValidator.php +++ b/src/LiveComponent/src/ComponentValidator.php @@ -19,8 +19,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class ComponentValidator implements ComponentValidatorInterface, ServiceSubscriberInterface diff --git a/src/LiveComponent/src/ComponentValidatorInterface.php b/src/LiveComponent/src/ComponentValidatorInterface.php index 9c4bd688345..e2e45b808da 100644 --- a/src/LiveComponent/src/ComponentValidatorInterface.php +++ b/src/LiveComponent/src/ComponentValidatorInterface.php @@ -15,8 +15,6 @@ /** * @author Ryan Weaver - * - * @experimental */ interface ComponentValidatorInterface { diff --git a/src/LiveComponent/src/ComponentWithFormTrait.php b/src/LiveComponent/src/ComponentWithFormTrait.php index f3d5dbd8a3d..806cfaa24bb 100644 --- a/src/LiveComponent/src/ComponentWithFormTrait.php +++ b/src/LiveComponent/src/ComponentWithFormTrait.php @@ -23,8 +23,6 @@ /** * @author Ryan Weaver - * - * @experimental */ trait ComponentWithFormTrait { diff --git a/src/LiveComponent/src/DefaultActionTrait.php b/src/LiveComponent/src/DefaultActionTrait.php index f5323331b9c..43149d0ef88 100644 --- a/src/LiveComponent/src/DefaultActionTrait.php +++ b/src/LiveComponent/src/DefaultActionTrait.php @@ -13,8 +13,6 @@ /** * @author Kevin Bond - * - * @experimental */ trait DefaultActionTrait { diff --git a/src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php b/src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php index 7b7af14d479..6168fd290e2 100644 --- a/src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php +++ b/src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php @@ -17,8 +17,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class ComponentDefaultActionPass implements CompilerPassInterface diff --git a/src/LiveComponent/src/DependencyInjection/Compiler/OptionalDependencyPass.php b/src/LiveComponent/src/DependencyInjection/Compiler/OptionalDependencyPass.php index f2dea14c4dc..95180356285 100644 --- a/src/LiveComponent/src/DependencyInjection/Compiler/OptionalDependencyPass.php +++ b/src/LiveComponent/src/DependencyInjection/Compiler/OptionalDependencyPass.php @@ -21,8 +21,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class OptionalDependencyPass implements CompilerPassInterface diff --git a/src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php b/src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php index 97c48d75d5e..e02452e512f 100644 --- a/src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php +++ b/src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php @@ -55,8 +55,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class LiveComponentExtension extends Extension implements PrependExtensionInterface diff --git a/src/LiveComponent/src/EventListener/AddLiveAttributesSubscriber.php b/src/LiveComponent/src/EventListener/AddLiveAttributesSubscriber.php index 4f9edc0e97a..656be04bd7c 100644 --- a/src/LiveComponent/src/EventListener/AddLiveAttributesSubscriber.php +++ b/src/LiveComponent/src/EventListener/AddLiveAttributesSubscriber.php @@ -29,8 +29,6 @@ * * @author Kevin Bond * - * @experimental - * * @internal */ final class AddLiveAttributesSubscriber implements EventSubscriberInterface, ServiceSubscriberInterface diff --git a/src/LiveComponent/src/EventListener/DeferLiveComponentSubscriber.php b/src/LiveComponent/src/EventListener/DeferLiveComponentSubscriber.php index 19928e8bd95..f47fe52b0e2 100644 --- a/src/LiveComponent/src/EventListener/DeferLiveComponentSubscriber.php +++ b/src/LiveComponent/src/EventListener/DeferLiveComponentSubscriber.php @@ -17,6 +17,11 @@ use Symfony\UX\TwigComponent\Event\PostMountEvent; use Symfony\UX\TwigComponent\Event\PreRenderEvent; +/** + * Handles the "defer" key, which causes the component to be rendered asynchronously. + * + * @internal + */ final class DeferLiveComponentSubscriber implements EventSubscriberInterface { private const DEFAULT_LOADING_TAG = 'div'; diff --git a/src/LiveComponent/src/EventListener/InterceptChildComponentRenderSubscriber.php b/src/LiveComponent/src/EventListener/InterceptChildComponentRenderSubscriber.php index 552883653a4..2c72f883af2 100644 --- a/src/LiveComponent/src/EventListener/InterceptChildComponentRenderSubscriber.php +++ b/src/LiveComponent/src/EventListener/InterceptChildComponentRenderSubscriber.php @@ -25,8 +25,6 @@ * * @author Ryan Weaver * - * @experimental - * * @internal */ class InterceptChildComponentRenderSubscriber implements EventSubscriberInterface, ServiceSubscriberInterface diff --git a/src/LiveComponent/src/EventListener/LiveComponentSubscriber.php b/src/LiveComponent/src/EventListener/LiveComponentSubscriber.php index 4d59d13870e..c428de0d45b 100644 --- a/src/LiveComponent/src/EventListener/LiveComponentSubscriber.php +++ b/src/LiveComponent/src/EventListener/LiveComponentSubscriber.php @@ -42,8 +42,6 @@ * @author Kevin Bond * @author Ryan Weaver * - * @experimental - * * @internal */ class LiveComponentSubscriber implements EventSubscriberInterface, ServiceSubscriberInterface diff --git a/src/LiveComponent/src/EventListener/QueryStringInitializeSubscriber.php b/src/LiveComponent/src/EventListener/QueryStringInitializeSubscriber.php index c3b0829b5e4..4d7fd1205ff 100644 --- a/src/LiveComponent/src/EventListener/QueryStringInitializeSubscriber.php +++ b/src/LiveComponent/src/EventListener/QueryStringInitializeSubscriber.php @@ -20,8 +20,6 @@ /** * @author Nicolas Rigaud * - * @experimental - * * @internal */ class QueryStringInitializeSubscriber implements EventSubscriberInterface diff --git a/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php b/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php index 52ce1c06faf..43d03babfdf 100644 --- a/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php +++ b/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php @@ -36,8 +36,6 @@ * * @author Ryan Weaver * - * @experimental - * * @internal */ final class ResetDeterministicIdSubscriber implements EventSubscriberInterface diff --git a/src/LiveComponent/src/Exception/HydrationException.php b/src/LiveComponent/src/Exception/HydrationException.php index c267c259ce9..61a3f1aa4e7 100644 --- a/src/LiveComponent/src/Exception/HydrationException.php +++ b/src/LiveComponent/src/Exception/HydrationException.php @@ -20,8 +20,6 @@ * * @author Ryan Weaver * - * @experimental - * * @internal */ class HydrationException extends BadRequestHttpException diff --git a/src/LiveComponent/src/Form/Type/LiveCollectionType.php b/src/LiveComponent/src/Form/Type/LiveCollectionType.php index 9ac5c71b84b..01389e0f2da 100644 --- a/src/LiveComponent/src/Form/Type/LiveCollectionType.php +++ b/src/LiveComponent/src/Form/Type/LiveCollectionType.php @@ -21,8 +21,6 @@ /** * @author Gábor Egyed - * - * @experimental */ final class LiveCollectionType extends AbstractType { diff --git a/src/LiveComponent/src/Hydration/DoctrineEntityHydrationExtension.php b/src/LiveComponent/src/Hydration/DoctrineEntityHydrationExtension.php index c76f108f919..118a6152ae8 100644 --- a/src/LiveComponent/src/Hydration/DoctrineEntityHydrationExtension.php +++ b/src/LiveComponent/src/Hydration/DoctrineEntityHydrationExtension.php @@ -15,6 +15,11 @@ use Doctrine\Persistence\ManagerRegistry; use Doctrine\Persistence\ObjectManager; +/** + * Handles hydration of Doctrine entities. + * + * @internal + */ class DoctrineEntityHydrationExtension implements HydrationExtensionInterface { /** diff --git a/src/LiveComponent/src/Hydration/HydrationExtensionInterface.php b/src/LiveComponent/src/Hydration/HydrationExtensionInterface.php index 3a62a6c9baa..aeb24d46b8b 100644 --- a/src/LiveComponent/src/Hydration/HydrationExtensionInterface.php +++ b/src/LiveComponent/src/Hydration/HydrationExtensionInterface.php @@ -11,6 +11,9 @@ namespace Symfony\UX\LiveComponent\Hydration; +/** + * Interface for custom hydration of objects. + */ interface HydrationExtensionInterface { /** diff --git a/src/LiveComponent/src/LiveCollectionTrait.php b/src/LiveComponent/src/LiveCollectionTrait.php index 804545d0728..70f11f23b8b 100644 --- a/src/LiveComponent/src/LiveCollectionTrait.php +++ b/src/LiveComponent/src/LiveCollectionTrait.php @@ -17,8 +17,6 @@ /** * @author Gábor Egyed - * - * @experimental */ trait LiveCollectionTrait { diff --git a/src/LiveComponent/src/LiveComponentBundle.php b/src/LiveComponent/src/LiveComponentBundle.php index e7bb70330a7..ba5af470ae7 100644 --- a/src/LiveComponent/src/LiveComponentBundle.php +++ b/src/LiveComponent/src/LiveComponentBundle.php @@ -19,8 +19,6 @@ /** * @author Kevin Bond - * - * @experimental */ final class LiveComponentBundle extends Bundle { diff --git a/src/LiveComponent/src/LiveComponentHydrator.php b/src/LiveComponent/src/LiveComponentHydrator.php index 85638731516..d2ec7da9b7b 100644 --- a/src/LiveComponent/src/LiveComponentHydrator.php +++ b/src/LiveComponent/src/LiveComponentHydrator.php @@ -35,8 +35,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class LiveComponentHydrator diff --git a/src/LiveComponent/src/LiveResponder.php b/src/LiveComponent/src/LiveResponder.php index 4a7caca57f7..d44ffcb24d5 100644 --- a/src/LiveComponent/src/LiveResponder.php +++ b/src/LiveComponent/src/LiveResponder.php @@ -12,8 +12,6 @@ namespace Symfony\UX\LiveComponent; /** - * @experimental - * * @author Ryan Weaver */ final class LiveResponder diff --git a/src/LiveComponent/src/Metadata/LiveComponentMetadata.php b/src/LiveComponent/src/Metadata/LiveComponentMetadata.php index d4b5c99ae71..45c97114b0e 100644 --- a/src/LiveComponent/src/Metadata/LiveComponentMetadata.php +++ b/src/LiveComponent/src/Metadata/LiveComponentMetadata.php @@ -16,8 +16,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class LiveComponentMetadata diff --git a/src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php b/src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php index 8661f1796f5..ad9f6e66b8a 100644 --- a/src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php +++ b/src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php @@ -20,8 +20,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class LiveComponentMetadataFactory implements ResetInterface diff --git a/src/LiveComponent/src/Metadata/LivePropMetadata.php b/src/LiveComponent/src/Metadata/LivePropMetadata.php index 896edd3aa23..ed18c6d850f 100644 --- a/src/LiveComponent/src/Metadata/LivePropMetadata.php +++ b/src/LiveComponent/src/Metadata/LivePropMetadata.php @@ -17,8 +17,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class LivePropMetadata diff --git a/src/LiveComponent/src/Twig/DeterministicTwigIdCalculator.php b/src/LiveComponent/src/Twig/DeterministicTwigIdCalculator.php index 233e13b416c..3f5bcf98d7b 100644 --- a/src/LiveComponent/src/Twig/DeterministicTwigIdCalculator.php +++ b/src/LiveComponent/src/Twig/DeterministicTwigIdCalculator.php @@ -17,8 +17,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class DeterministicTwigIdCalculator diff --git a/src/LiveComponent/src/Twig/LiveComponentExtension.php b/src/LiveComponent/src/Twig/LiveComponentExtension.php index ad52639aef3..fa841ae22bf 100644 --- a/src/LiveComponent/src/Twig/LiveComponentExtension.php +++ b/src/LiveComponent/src/Twig/LiveComponentExtension.php @@ -17,8 +17,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class LiveComponentExtension extends AbstractExtension diff --git a/src/LiveComponent/src/Twig/LiveComponentRuntime.php b/src/LiveComponent/src/Twig/LiveComponentRuntime.php index 11ffc40d814..daba8d3b7ef 100644 --- a/src/LiveComponent/src/Twig/LiveComponentRuntime.php +++ b/src/LiveComponent/src/Twig/LiveComponentRuntime.php @@ -19,8 +19,6 @@ /** * @author Kevin Bond * - * @experimental - * * @internal */ final class LiveComponentRuntime diff --git a/src/LiveComponent/src/Util/ChildComponentPartialRenderer.php b/src/LiveComponent/src/Util/ChildComponentPartialRenderer.php index c1c51b1e210..1541588f935 100644 --- a/src/LiveComponent/src/Util/ChildComponentPartialRenderer.php +++ b/src/LiveComponent/src/Util/ChildComponentPartialRenderer.php @@ -20,8 +20,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class ChildComponentPartialRenderer implements ServiceSubscriberInterface diff --git a/src/LiveComponent/src/Util/DehydratedProps.php b/src/LiveComponent/src/Util/DehydratedProps.php index d63fdef8abe..3a2372d4d36 100644 --- a/src/LiveComponent/src/Util/DehydratedProps.php +++ b/src/LiveComponent/src/Util/DehydratedProps.php @@ -16,8 +16,6 @@ * * @author Ryan Weaver * - * @experimental - * * @internal */ class DehydratedProps diff --git a/src/LiveComponent/src/Util/FingerprintCalculator.php b/src/LiveComponent/src/Util/FingerprintCalculator.php index 741ac7760d1..886c2ef9929 100644 --- a/src/LiveComponent/src/Util/FingerprintCalculator.php +++ b/src/LiveComponent/src/Util/FingerprintCalculator.php @@ -24,8 +24,6 @@ * * @author Ryan Weaver * - * @experimental - * * @internal */ class FingerprintCalculator diff --git a/src/LiveComponent/src/Util/JsonUtil.php b/src/LiveComponent/src/Util/JsonUtil.php index e2f5e5c7a70..95ac0a3ee59 100644 --- a/src/LiveComponent/src/Util/JsonUtil.php +++ b/src/LiveComponent/src/Util/JsonUtil.php @@ -14,8 +14,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ final class JsonUtil diff --git a/src/LiveComponent/src/Util/LiveAttributesCollection.php b/src/LiveComponent/src/Util/LiveAttributesCollection.php index 43046bf60aa..969090a4ebc 100644 --- a/src/LiveComponent/src/Util/LiveAttributesCollection.php +++ b/src/LiveComponent/src/Util/LiveAttributesCollection.php @@ -17,8 +17,6 @@ /** * An array of attributes that can eventually be returned as an escaped array. * - * @experimental - * * @internal */ final class LiveAttributesCollection diff --git a/src/LiveComponent/src/Util/LiveControllerAttributesCreator.php b/src/LiveComponent/src/Util/LiveControllerAttributesCreator.php index 29f25dd35e9..b7893ae6b48 100644 --- a/src/LiveComponent/src/Util/LiveControllerAttributesCreator.php +++ b/src/LiveComponent/src/Util/LiveControllerAttributesCreator.php @@ -26,8 +26,6 @@ /** * @author Ryan Weaver * - * @experimental - * * @internal */ class LiveControllerAttributesCreator diff --git a/src/LiveComponent/src/Util/LiveFormUtility.php b/src/LiveComponent/src/Util/LiveFormUtility.php index 1b74ce7bf0a..a7aa6475fd5 100644 --- a/src/LiveComponent/src/Util/LiveFormUtility.php +++ b/src/LiveComponent/src/Util/LiveFormUtility.php @@ -14,8 +14,6 @@ use Symfony\Component\Form\FormView; /** - * @experimental - * * @internal */ final class LiveFormUtility diff --git a/src/LiveComponent/src/Util/QueryStringPropsExtractor.php b/src/LiveComponent/src/Util/QueryStringPropsExtractor.php index a9cdbd13f55..311b35cb6e1 100644 --- a/src/LiveComponent/src/Util/QueryStringPropsExtractor.php +++ b/src/LiveComponent/src/Util/QueryStringPropsExtractor.php @@ -20,8 +20,6 @@ /** * @author Nicolas Rigaud * - * @experimental - * * @internal */ final class QueryStringPropsExtractor diff --git a/src/LiveComponent/src/Util/TwigAttributeHelperFactory.php b/src/LiveComponent/src/Util/TwigAttributeHelperFactory.php index 95143d083ec..9f0a81982b7 100644 --- a/src/LiveComponent/src/Util/TwigAttributeHelperFactory.php +++ b/src/LiveComponent/src/Util/TwigAttributeHelperFactory.php @@ -16,8 +16,6 @@ /** * Helper for building an array of attributes for the live controller element. * - * @experimental - * * @internal */ final class TwigAttributeHelperFactory diff --git a/src/LiveComponent/src/ValidatableComponentTrait.php b/src/LiveComponent/src/ValidatableComponentTrait.php index 2df06ede253..dc568722e72 100644 --- a/src/LiveComponent/src/ValidatableComponentTrait.php +++ b/src/LiveComponent/src/ValidatableComponentTrait.php @@ -21,8 +21,6 @@ /** * @author Ryan Weaver - * - * @experimental */ trait ValidatableComponentTrait { diff --git a/src/LiveComponent/tests/Unit/Form/Type/LiveCollectionTypeTest.php b/src/LiveComponent/tests/Unit/Form/Type/LiveCollectionTypeTest.php index aa9afbf399f..ff82a236b74 100644 --- a/src/LiveComponent/tests/Unit/Form/Type/LiveCollectionTypeTest.php +++ b/src/LiveComponent/tests/Unit/Form/Type/LiveCollectionTypeTest.php @@ -17,8 +17,6 @@ /** * @author Gábor Egyed - * - * @experimental */ final class LiveCollectionTypeTest extends TypeTestCase { diff --git a/src/LiveComponent/tests/Unit/LiveCollectionTraitTest.php b/src/LiveComponent/tests/Unit/LiveCollectionTraitTest.php index e2cab836351..69eb6aad1cf 100644 --- a/src/LiveComponent/tests/Unit/LiveCollectionTraitTest.php +++ b/src/LiveComponent/tests/Unit/LiveCollectionTraitTest.php @@ -18,8 +18,6 @@ /** * @author Gábor Egyed - * - * @experimental */ final class LiveCollectionTraitTest extends TestCase { diff --git a/src/StimulusBundle/README.md b/src/StimulusBundle/README.md index a90b1f9c3ed..a18ddf0911d 100644 --- a/src/StimulusBundle/README.md +++ b/src/StimulusBundle/README.md @@ -3,7 +3,7 @@ This bundle adds integration between Symfony, Stimulus and Symfony UX: - A) Twig `stimulus_*` functions & filters to add Stimulus controllers, actions & targets in your templates; -- B) Integration with Symfony UX & AssetMapper (this integration is [experimental](https://symfony.com/doc/current/contributing/code/experimental.html)); +- B) Integration with Symfony UX & AssetMapper; - C) A helper service to build the Stimulus data attributes and use them in your services. [Read the documentation][1] diff --git a/src/StimulusBundle/doc/index.rst b/src/StimulusBundle/doc/index.rst index 71026256588..e158c404fbb 100644 --- a/src/StimulusBundle/doc/index.rst +++ b/src/StimulusBundle/doc/index.rst @@ -11,7 +11,6 @@ A) Twig ``stimulus_`` functions & filters to add Stimulus controllers, actions & targets in your templates; B) Integration to load :ref:`UX Packages ` (extra Stimulus controllers) - (if you're using AssetMapper, this integration is `experimental`_) Installation ------------ @@ -552,7 +551,6 @@ it will normalize it: .. _`parameters`: https://stimulus.hotwired.dev/reference/actions#action-parameters .. _`Stimulus Targets`: https://stimulus.hotwired.dev/reference/targets .. _`StimulusBundle Flex recipe`: https://github.com/symfony/recipes/tree/main/symfony/stimulus-bundle -.. _`experimental`: https://symfony.com/doc/current/contributing/code/experimental.html .. _`ux-autocomplete`: https://symfony.com/bundles/ux-autocomplete/current/index.html .. _`ux-chartjs`: https://symfony.com/bundles/ux-chartjs/current/index.html .. _`ux-cropperjs`: https://symfony.com/bundles/ux-cropperjs/current/index.html diff --git a/src/StimulusBundle/src/AssetMapper/ControllersMapGenerator.php b/src/StimulusBundle/src/AssetMapper/ControllersMapGenerator.php index 87690f96676..8307302c7cd 100644 --- a/src/StimulusBundle/src/AssetMapper/ControllersMapGenerator.php +++ b/src/StimulusBundle/src/AssetMapper/ControllersMapGenerator.php @@ -22,8 +22,6 @@ * * @internal * - * @experimental - * * @author Ryan Weaver */ class ControllersMapGenerator diff --git a/src/StimulusBundle/src/AssetMapper/MappedControllerAsset.php b/src/StimulusBundle/src/AssetMapper/MappedControllerAsset.php index b3e0f74a988..bcc79c360e8 100644 --- a/src/StimulusBundle/src/AssetMapper/MappedControllerAsset.php +++ b/src/StimulusBundle/src/AssetMapper/MappedControllerAsset.php @@ -14,9 +14,9 @@ use Symfony\Component\AssetMapper\MappedAsset; /** - * @experimental - * * @author Ryan Weaver + * + * @internal */ class MappedControllerAsset { diff --git a/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php b/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php index 8d8034565b4..66fb366c2d2 100644 --- a/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php +++ b/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php @@ -12,7 +12,7 @@ namespace Symfony\UX\StimulusBundle\AssetMapper; /** - * @experimental + * @internal * * @author Ryan Weaver */ diff --git a/src/StimulusBundle/src/AssetMapper/StimulusLoaderJavaScriptCompiler.php b/src/StimulusBundle/src/AssetMapper/StimulusLoaderJavaScriptCompiler.php index 0fc06234d03..72f7c1e090f 100644 --- a/src/StimulusBundle/src/AssetMapper/StimulusLoaderJavaScriptCompiler.php +++ b/src/StimulusBundle/src/AssetMapper/StimulusLoaderJavaScriptCompiler.php @@ -20,7 +20,7 @@ /** * Compiles the loader.js file to dynamically import the controllers. * - * @experimental + * @internal * * @author Ryan Weaver */ diff --git a/src/StimulusBundle/src/DependencyInjection/Compiler/RemoveAssetMapperServicesCompiler.php b/src/StimulusBundle/src/DependencyInjection/Compiler/RemoveAssetMapperServicesCompiler.php index 5935920ba57..2e29e535734 100644 --- a/src/StimulusBundle/src/DependencyInjection/Compiler/RemoveAssetMapperServicesCompiler.php +++ b/src/StimulusBundle/src/DependencyInjection/Compiler/RemoveAssetMapperServicesCompiler.php @@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; /** - * @experimental + * @internal * * @author Ryan Weaver */ diff --git a/src/StimulusBundle/src/Twig/UxControllersTwigExtension.php b/src/StimulusBundle/src/Twig/UxControllersTwigExtension.php index 3cea57deb3f..62d4919421e 100644 --- a/src/StimulusBundle/src/Twig/UxControllersTwigExtension.php +++ b/src/StimulusBundle/src/Twig/UxControllersTwigExtension.php @@ -17,7 +17,7 @@ use Twig\TwigFunction; /** - * @experimental + * @internal * * @author Ryan Weaver */ diff --git a/src/StimulusBundle/src/Twig/UxControllersTwigRuntime.php b/src/StimulusBundle/src/Twig/UxControllersTwigRuntime.php index af8cb6023bd..77a2217adfb 100644 --- a/src/StimulusBundle/src/Twig/UxControllersTwigRuntime.php +++ b/src/StimulusBundle/src/Twig/UxControllersTwigRuntime.php @@ -20,7 +20,7 @@ /** * Returns the link tags for all autoimported CSS files in controllers.json. * - * @experimental + * @internal * * @author Ryan Weaver */ diff --git a/src/StimulusBundle/src/Ux/UxPackageMetadata.php b/src/StimulusBundle/src/Ux/UxPackageMetadata.php index 026edca7ffc..2bb601cd9f7 100644 --- a/src/StimulusBundle/src/Ux/UxPackageMetadata.php +++ b/src/StimulusBundle/src/Ux/UxPackageMetadata.php @@ -14,8 +14,6 @@ /** * @internal * - * @experimental - * * @author Ryan Weaver */ class UxPackageMetadata diff --git a/src/StimulusBundle/src/Ux/UxPackageReader.php b/src/StimulusBundle/src/Ux/UxPackageReader.php index ea31f69d580..9ac7cda8dab 100644 --- a/src/StimulusBundle/src/Ux/UxPackageReader.php +++ b/src/StimulusBundle/src/Ux/UxPackageReader.php @@ -14,8 +14,6 @@ /** * @internal * - * @experimental - * * @author Ryan Weaver */ class UxPackageReader