forked from magento-arcticfoxes/php72-framwork
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAclFactory.php
More file actions
36 lines (33 loc) · 748 Bytes
/
AclFactory.php
File metadata and controls
36 lines (33 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Acl object factory.
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework;
class AclFactory
{
/**
* Object manager
*
* @var \Magento\Framework\ObjectManagerInterface
*/
private $_objectManager;
/**
* @param \Magento\Framework\ObjectManagerInterface $objectManager
*/
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
{
$this->_objectManager = $objectManager;
}
/**
* Create new magento acl instance
*
* @return \Magento\Framework\Acl
*/
public function create()
{
return $this->_objectManager->create(Acl::class);
}
}