ThemePackageFactory.php 527 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Design\Theme;
  7. use Magento\Framework\View\Design\Theme\ThemePackage;
  8. /**
  9. * Factory for theme packages
  10. */
  11. class ThemePackageFactory
  12. {
  13. /**
  14. * Create an instance of ThemePackage
  15. *
  16. * @param string $key
  17. * @param string $path
  18. *
  19. * @return ThemePackage
  20. */
  21. public function create($key, $path)
  22. {
  23. return new ThemePackage($key, $path);
  24. }
  25. }