ConfigFactory.php 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Application language config factory
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\App\Language;
  9. /**
  10. * @codeCoverageIgnore
  11. */
  12. class ConfigFactory
  13. {
  14. /**
  15. * @var \Magento\Framework\ObjectManagerInterface
  16. */
  17. protected $_objectManager;
  18. /**
  19. * @param \Magento\Framework\ObjectManagerInterface $objectManager
  20. */
  21. public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
  22. {
  23. $this->_objectManager = $objectManager;
  24. }
  25. /**
  26. * Create config
  27. *
  28. * @param array $arguments
  29. * @return Config
  30. */
  31. public function create(array $arguments = [])
  32. {
  33. return $this->_objectManager->create(\Magento\Framework\App\Language\Config::class, $arguments);
  34. }
  35. }