di.xml 1.2 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Authorization\Model\Role" shared="false" />
  10. <type name="Magento\Authorization\Model\ResourceModel\Rules">
  11. <arguments>
  12. <argument name="rootResource" xsi:type="object">Magento\Framework\Acl\RootResource\Proxy</argument>
  13. </arguments>
  14. </type>
  15. <type name="Magento\Framework\Acl\Builder">
  16. <arguments>
  17. <argument name="ruleLoader" xsi:type="object">Magento\Authorization\Model\Acl\Loader\Rule</argument>
  18. <argument name="roleLoader" xsi:type="object">Magento\Authorization\Model\Acl\Loader\Role</argument>
  19. </arguments>
  20. </type>
  21. <type name="Magento\Framework\Authorization\Policy\Acl">
  22. <arguments>
  23. <argument name="aclBuilder" xsi:type="object">Magento\Framework\Acl\Builder\Proxy</argument>
  24. </arguments>
  25. </type>
  26. <preference for="Magento\Authorization\Model\UserContextInterface" type="Magento\Authorization\Model\CompositeUserContext"/>
  27. </config>