Config.php 667 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Model\Quote;
  7. class Config
  8. {
  9. /**
  10. * @var \Magento\Catalog\Model\Attribute\Config
  11. */
  12. private $_attributeConfig;
  13. /**
  14. * @param \Magento\Catalog\Model\Attribute\Config $attributeConfig
  15. */
  16. public function __construct(\Magento\Catalog\Model\Attribute\Config $attributeConfig)
  17. {
  18. $this->_attributeConfig = $attributeConfig;
  19. }
  20. /**
  21. * @return array
  22. */
  23. public function getProductAttributes()
  24. {
  25. return $this->_attributeConfig->getAttributeNames('quote_item');
  26. }
  27. }