Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
GraphQlSchemaStitching
Common
Reader.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\GraphQlSchemaStitching\Common
;
9
10
use
Magento\Framework\Config\ReaderInterface
;
11
15
class
Reader
implements
ReaderInterface
16
{
20
private
$readers;
21
25
public
function
__construct
(
26
array $readers = []
27
) {
28
$this->readers = $readers;
29
}
30
37
public
function
read
($scope =
null
) : array
38
{
39
$output
= [];
40
foreach
($this->readers as $reader) {
41
$output
= array_replace_recursive(
$output
, $reader->read($scope));
42
}
43
return
$output
;
44
}
45
}
Magento\Framework\Config\ReaderInterface
Definition:
ReaderInterface.php:16
Magento\Framework\GraphQlSchemaStitching\Common\Reader\__construct
__construct(array $readers=[])
Definition:
Reader.php:25
Magento\Framework\GraphQlSchemaStitching\Common
Definition:
Reader.php:8
$output
$output
Definition:
classmap_generator.php:100
Magento\Framework\GraphQlSchemaStitching\Common\Reader\read
read($scope=null)
Definition:
Reader.php:37
Magento\Framework\GraphQlSchemaStitching\Common\Reader
Definition:
Reader.php:15