Skip to content

Commit a5d1a37

Browse files
committed
Merge remote-tracking branch 'mainline/develop' into MAGETWO-66374
2 parents 0cb7d90 + c3040d3 commit a5d1a37

File tree

317 files changed

+1425
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+1425
-522
lines changed

app/code/Magento/Authorization/Model/CompositeUserContext.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
use Magento\Framework\ObjectManager\Helper\Composite as CompositeHelper;
1010

1111
/**
12-
* Composite user context (implements composite pattern).
12+
* User context.
13+
*
14+
* This class is not implementing standard composite pattern and will not invoke all of its children.
15+
* Instead, it will try to find the first suitable child and return its result.
16+
*
17+
* @api
1318
*/
1419
class CompositeUserContext implements \Magento\Authorization\Model\UserContextInterface
1520
{

app/code/Magento/Authorization/Model/ResourceModel/Permissions/Collection.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@
88
/**
99
* Admin permissions collection
1010
*
11-
* @author Magento Core Team <core@magentocommerce.com>
11+
* @deprecated
12+
* @see \Magento\Authorization\Model\ResourceModel\Rules\Collection
1213
*/
13-
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
14+
class Collection extends \Magento\Authorization\Model\ResourceModel\Rules\Collection
1415
{
15-
/**
16-
* Initialize resource
17-
*
18-
* @return void
19-
*/
20-
protected function _construct()
21-
{
22-
$this->_init(
23-
\Magento\Authorization\Model\Rules::class,
24-
\Magento\Authorization\Model\ResourceModel\Rules::class
25-
);
26-
}
2716
}

app/code/Magento/Authorization/Model/ResourceModel/Role/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Admin role collection
12+
*
13+
* @api
1214
*/
1315
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1416
{

app/code/Magento/Authorization/Model/ResourceModel/Rules/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Rules collection
1010
*
11-
* @author Magento Core Team <core@magentocommerce.com>
11+
* @api
1212
*/
1313
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1414
{

app/code/Magento/Authorization/Model/Role.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @method \Magento\Authorization\Model\Role setUserType(string $value)
2525
* @method string getRoleName()
2626
* @method \Magento\Authorization\Model\Role setRoleName(string $value)
27+
* @api
2728
*/
2829
class Role extends \Magento\Framework\Model\AbstractModel
2930
{

app/code/Magento/Authorization/Model/Rules.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @method \Magento\Authorization\Model\Rules setAssertId(int $value)
2222
* @method string getPermission()
2323
* @method \Magento\Authorization\Model\Rules setPermission(string $value)
24+
* @api
2425
*/
2526
class Rules extends \Magento\Framework\Model\AbstractModel
2627
{
@@ -30,14 +31,14 @@ class Rules extends \Magento\Framework\Model\AbstractModel
3031
* @param \Magento\Framework\Model\Context $context
3132
* @param \Magento\Framework\Registry $registry
3233
* @param \Magento\Authorization\Model\ResourceModel\Rules $resource
33-
* @param \Magento\Authorization\Model\ResourceModel\Permissions\Collection $resourceCollection
34+
* @param \Magento\Authorization\Model\ResourceModel\Rules\Collection $resourceCollection
3435
* @param array $data
3536
*/
3637
public function __construct(
3738
\Magento\Framework\Model\Context $context,
3839
\Magento\Framework\Registry $registry,
3940
\Magento\Authorization\Model\ResourceModel\Rules $resource,
40-
\Magento\Authorization\Model\ResourceModel\Permissions\Collection $resourceCollection,
41+
\Magento\Authorization\Model\ResourceModel\Rules\Collection $resourceCollection,
4142
array $data = []
4243
) {
4344
parent::__construct($context, $registry, $resource, $resourceCollection, $data);

app/code/Magento/Authorization/Model/UserContextInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Interface for current user identification.
11+
*
12+
* @api
1113
*/
1214
interface UserContextInterface
1315
{

app/code/Magento/Bundle/Block/Adminhtml/Sales/Order/Items/Renderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* Adminhtml sales order item renderer
13+
* @api
1314
*/
1415
class Renderer extends \Magento\Sales\Block\Adminhtml\Items\Renderer\DefaultRenderer
1516
{

app/code/Magento/Bundle/Block/Adminhtml/Sales/Order/View/Items/Renderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* Adminhtml sales order item renderer
13+
* @api
1314
*/
1415
class Renderer extends \Magento\Sales\Block\Adminhtml\Order\View\Items\Renderer\DefaultRenderer
1516
{

app/code/Magento/Bundle/Block/Catalog/Product/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Bundle product price block
10-
*
10+
* @api
1111
*/
1212
class Price extends \Magento\Catalog\Block\Product\Price
1313
{

0 commit comments

Comments
 (0)