From 789c540c8edb437ed06135d405d7773934b65299 Mon Sep 17 00:00:00 2001 From: tuna Date: Tue, 13 Apr 2021 22:45:59 +0700 Subject: [PATCH] Mark Framework interfaces as API part 2 Update hollymolly up update update types fix fail tests update strict type for preg_match 2rd argument Update revert origin code resolve conflicts --- .../Magento/Framework/App/CsrfAwareActionInterface.php | 3 ++- .../Magento/Framework/App/DefaultPathInterface.php | 6 ++++-- .../Framework/App/DeploymentConfig/ImporterInterface.php | 4 ++++ .../Framework/App/DeploymentConfig/ValidatorInterface.php | 4 ++++ .../App/DeploymentConfig/Writer/FormatterInterface.php | 2 ++ lib/internal/Magento/Framework/App/DesignInterface.php | 4 ++++ .../Magento/Framework/App/EnvironmentInterface.php | 3 +++ .../Magento/Framework/App/ExceptionHandlerInterface.php | 4 ++++ .../Magento/Framework/App/FeedFactoryInterface.php | 4 +++- lib/internal/Magento/Framework/App/FeedInterface.php | 4 +++- .../Magento/Framework/App/HttpRequestInterface.php | 5 +++++ .../Framework/App/ObjectManager/ConfigWriterInterface.php | 3 ++- .../Framework/App/PageCache/NotCacheableInterface.php | 5 +++-- lib/internal/Magento/Framework/App/Request/Http.php | 6 +++++- .../Framework/App/Request/InvalidRequestException.php | 3 ++- .../Magento/Framework/App/Request/ValidatorInterface.php | 3 ++- .../Framework/App/ResourceConnection/ConfigInterface.php | 5 +++-- .../App/ResourceConnection/ConnectionAdapterInterface.php | 3 +++ .../Magento/Framework/App/Response/FileInterface.php | 5 +++-- .../Response/HeaderProvider/HeaderProviderInterface.php | 2 ++ lib/internal/Magento/Framework/App/Response/Http.php | 1 + .../Magento/Framework/App/Response/RedirectInterface.php | 5 +++-- .../Framework/App/Router/NoRouteHandlerInterface.php | 3 +++ .../Magento/Framework/App/Router/PathConfigInterface.php | 3 +++ lib/internal/Magento/Framework/App/RouterInterface.php | 8 +++++--- .../Magento/Framework/App/RouterListInterface.php | 6 +++++- .../Magento/Framework/App/Rss/RssManagerInterface.php | 5 ++++- .../Magento/Framework/App/Rss/UrlBuilderInterface.php | 5 ++++- .../Magento/Framework/App/Scope/ValidatorInterface.php | 4 ++++ .../Framework/App/ScopeFallbackResolverInterface.php | 3 +++ .../Magento/Framework/App/ScopeResolverInterface.php | 6 +++++- .../Magento/Framework/App/ScopeTreeProviderInterface.php | 3 +++ .../Magento/Framework/App/ScopeValidatorInterface.php | 3 +++ .../Asset/MaterializationStrategy/StrategyInterface.php | 2 ++ .../App/View/Deployment/Version/StorageInterface.php | 3 +++ lib/internal/Magento/Framework/DB/LoggerInterface.php | 4 ++++ .../Magento/Framework/Interception/ConfigInterface.php | 6 ++++-- .../Interception/ObjectManager/ConfigInterface.php | 3 +++ .../Framework/ObjectManager/ConfigCacheInterface.php | 3 +++ .../Magento/Framework/ObjectManager/ConfigInterface.php | 3 +++ .../Framework/ObjectManager/RelationsInterface.php | 3 +++ lib/internal/Magento/Framework/View/DesignInterface.php | 6 +++++- 42 files changed, 139 insertions(+), 27 deletions(-) diff --git a/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php b/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php index 8413b945a1141..709e2f3292504 100644 --- a/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php +++ b/lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\App; @@ -12,6 +11,8 @@ /** * Action that's aware of CSRF protection. + * + * @api */ interface CsrfAwareActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/DefaultPathInterface.php b/lib/internal/Magento/Framework/App/DefaultPathInterface.php index a0a517815e3e0..9e3af47c2b1d4 100644 --- a/lib/internal/Magento/Framework/App/DefaultPathInterface.php +++ b/lib/internal/Magento/Framework/App/DefaultPathInterface.php @@ -1,15 +1,17 @@