Skip to content

Commit d0afdf9

Browse files
author
Gabriel Galvao da Gama
committed
Merge remote-tracking branch 'magento-engcom/imported-magento-magento2-32140' into api-changes-delivery
2 parents 0a31d50 + 68ff23a commit d0afdf9

35 files changed

+110
-26
lines changed

lib/internal/Magento/Framework/App/CsrfAwareActionInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\App;
@@ -12,6 +11,8 @@
1211

1312
/**
1413
* Action that's aware of CSRF protection.
14+
*
15+
* @api
1516
*/
1617
interface CsrfAwareActionInterface extends ActionInterface
1718
{

lib/internal/Magento/Framework/App/DefaultPathInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22
/**
3-
* Abstract application router
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\App;
99

1010
/**
1111
* Interface \Magento\Framework\App\DefaultPathInterface
12+
* Abstract application router
1213
*
14+
* @api
1315
*/
1416
interface DefaultPathInterface
1517
{

lib/internal/Magento/Framework/App/DeploymentConfig/ImporterInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App\DeploymentConfig;
79

810
use Magento\Framework\Exception\State\InvalidTransitionException;
911

1012
/**
1113
* Interface for importers which import data from shared configuration files to appropriate data storage.
14+
*
15+
* @api
1216
*/
1317
interface ImporterInterface
1418
{

lib/internal/Magento/Framework/App/DeploymentConfig/ValidatorInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App\DeploymentConfig;
79

810
/**
911
* Validator interface for section data from shared configuration files.
12+
*
13+
* @api
1014
*/
1115
interface ValidatorInterface
1216
{

lib/internal/Magento/Framework/App/DeploymentConfig/Writer/FormatterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\App\DeploymentConfig\Writer;
89

910
/**
1011
* Interface \Magento\Framework\App\DeploymentConfig\Writer\FormatterInterface
1112
*
13+
* @api
1214
*/
1315
interface FormatterInterface
1416
{

lib/internal/Magento/Framework/App/DesignInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App;
79

810
/**
911
* Design Interface
12+
*
13+
* @api
1014
*/
1115
interface DesignInterface
1216
{

lib/internal/Magento/Framework/App/EnvironmentInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\App;
89

@@ -12,6 +13,8 @@
1213

1314
/**
1415
* Interface for ObjectManager Environment
16+
*
17+
* @api
1518
*/
1619
interface EnvironmentInterface
1720
{

lib/internal/Magento/Framework/App/ExceptionHandlerInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App;
79

810
use Magento\Framework\App\Response\Http as ResponseHttp;
911
use Magento\Framework\App\Request\Http as RequestHttp;
1012

1113
/**
1214
* Interface ExceptionHandler
15+
*
16+
* @api
1317
*/
1418
interface ExceptionHandlerInterface
1519
{

lib/internal/Magento/Framework/App/FeedFactoryInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Feed factory interface
12+
*
13+
* @api
1214
*/
1315
interface FeedFactoryInterface
1416
{
@@ -26,5 +28,5 @@ interface FeedFactoryInterface
2628
* @param string $format
2729
* @return FeedInterface
2830
*/
29-
public function create(array $data, string $format = self::FORMAT_RSS) : FeedInterface;
31+
public function create(array $data, string $format = self::FORMAT_RSS): FeedInterface;
3032
}

lib/internal/Magento/Framework/App/FeedInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Feed interface
12+
*
13+
* @api
1214
*/
1315
interface FeedInterface
1416
{
@@ -17,5 +19,5 @@ interface FeedInterface
1719
*
1820
* @return string
1921
*/
20-
public function getFormattedContent() : string;
22+
public function getFormattedContent(): string;
2123
}

lib/internal/Magento/Framework/App/ObjectManager/ConfigWriterInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\App\ObjectManager;
109

1110
/**
1211
* Write compiled object manager configuration to storage
12+
*
13+
* @api
1314
*/
1415
interface ConfigWriterInterface
1516
{

lib/internal/Magento/Framework/App/PageCache/NotCacheableInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
* HTTP response interface
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\App\PageCache;
99

1010
/**
1111
* Interface \Magento\Framework\App\PageCache\NotCacheableInterface
1212
*
13+
* @api
1314
*/
1415
interface NotCacheableInterface
1516
{

lib/internal/Magento/Framework/App/Request/Http.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App\Request;
79

810
use Magento\Framework\App\HttpRequestInterface;
@@ -16,6 +18,8 @@
1618

1719
/**
1820
* Http request
21+
*
22+
* @api
1923
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2024
*/
2125
class Http extends Request implements RequestContentInterface, RequestSafetyInterface, HttpRequestInterface
@@ -255,7 +259,7 @@ public function setControllerModule($module)
255259
/**
256260
* Get module name of currently used controller
257261
*
258-
* @return string
262+
* @return string
259263
*/
260264
public function getControllerModule()
261265
{

lib/internal/Magento/Framework/App/Request/InvalidRequestException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\App\Request;
@@ -16,6 +15,8 @@
1615

1716
/**
1817
* Received request is invalid.
18+
*
19+
* @api
1920
*/
2021
class InvalidRequestException extends RuntimeException
2122
{

lib/internal/Magento/Framework/App/Request/ValidatorInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\App\Request;
@@ -13,6 +12,8 @@
1312

1413
/**
1514
* Validate interface before giving passing it to an ActionInterface.
15+
*
16+
* @api
1617
*/
1718
interface ValidatorInterface
1819
{

lib/internal/Magento/Framework/App/ResourceConnection/ConfigInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
* Resource configuration interface
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\App\ResourceConnection;
99

1010
/**
1111
* Interface \Magento\Framework\App\ResourceConnection\ConfigInterface
1212
*
13+
* @api
1314
*/
1415
interface ConfigInterface
1516
{

lib/internal/Magento/Framework/App/ResourceConnection/ConnectionAdapterInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App\ResourceConnection;
79

810
use Magento\Framework\DB\Adapter\AdapterInterface;
@@ -12,6 +14,7 @@
1214
/**
1315
* Connection adapter interface
1416
*
17+
* @api
1518
*/
1619
interface ConnectionAdapterInterface
1720
{

lib/internal/Magento/Framework/App/Response/FileInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
* Interface of response sending file content
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\App\Response;
99

1010
/**
1111
* Interface \Magento\Framework\App\Response\FileInterface
1212
*
13+
* @api
1314
*/
1415
interface FileInterface extends HttpInterface
1516
{

lib/internal/Magento/Framework/App/Response/HeaderProvider/HeaderProviderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\App\Response\HeaderProvider;
89

910
/**
1011
* Interface \Magento\Framework\App\Response\HeaderProvider\HeaderProviderInterface
1112
*
13+
* @api
1214
*/
1315
interface HeaderProviderInterface
1416
{

lib/internal/Magento/Framework/App/Response/Http.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/**
1919
* HTTP Response.
2020
*
21+
* @api
2122
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2223
*/
2324
class Http extends \Magento\Framework\HTTP\PhpEnvironment\Response

lib/internal/Magento/Framework/App/Response/RedirectInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
* Response redirect interface
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\App\Response;
99

1010
/**
1111
* Interface \Magento\Framework\App\Response\RedirectInterface
1212
*
13+
* @api
1314
*/
1415
interface RedirectInterface
1516
{

lib/internal/Magento/Framework/App/Router/NoRouteHandlerInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
* Copyright © Magento, Inc. All rights reserved.
66
* See COPYING.txt for license details.
77
*/
8+
declare(strict_types=1);
9+
810
namespace Magento\Framework\App\Router;
911

1012
/**
1113
* Interface \Magento\Framework\App\Router\NoRouteHandlerInterface
1214
*
15+
* @api
1316
*/
1417
interface NoRouteHandlerInterface
1518
{

lib/internal/Magento/Framework/App/Router/PathConfigInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\App\Router;
79

810
/**
911
* Interface \Magento\Framework\App\Router\PathConfigInterface
1012
*
13+
* @api
1114
*/
1215
interface PathConfigInterface
1316
{

0 commit comments

Comments
 (0)