SchemaFactory.php 429 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Framework\GraphQl;
  8. /**
  9. * Factory for @see Schema
  10. */
  11. class SchemaFactory
  12. {
  13. /**
  14. * Create a Schema class
  15. *
  16. * @param array $config
  17. * @return Schema
  18. */
  19. public function create(array $config) : Schema
  20. {
  21. return new Schema($config);
  22. }
  23. }