Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (WebapiCache $cache, Reader $configReader, SerializerInterface $serializer=null) | |
getServices () | |
Data Fields | |
const | CACHE_ID = 'webapi_config' |
const | SERVICE_CLASS_PATTERN = '/^(.+?)\\\\(.+?)\\\\Service\\\\(V\d+)+(\\\\.+)Interface$/' |
const | API_PATTERN = '/^(.+?)\\\\(.+?)\\\\Api(\\\\.+)Interface$/' |
Protected Attributes | |
$cache | |
$configReader | |
$services | |
This class gives access to consolidated web API configuration from <Module_Name>/etc/webapi.xml files.
@api
Definition at line 20 of file Config.php.
__construct | ( | WebapiCache | $cache, |
Reader | $configReader, | ||
SerializerInterface | $serializer = null |
||
) |
Initialize dependencies.
WebapiCache | $cache | |
Reader | $configReader | |
SerializerInterface | null | $serializer |
Definition at line 58 of file Config.php.
getServices | ( | ) |
{Return services loaded from cache if enabled or from files merged previously
Implements ConfigInterface.
Definition at line 71 of file Config.php.
|
protected |
Definition at line 34 of file Config.php.
|
protected |
Definition at line 39 of file Config.php.
|
protected |
Definition at line 44 of file Config.php.
const API_PATTERN = '/^(.+?)\\\\(.+?)\\\\Api(\\\\.+)Interface$/' |
Definition at line 29 of file Config.php.
const CACHE_ID = 'webapi_config' |
Definition at line 22 of file Config.php.
const SERVICE_CLASS_PATTERN = '/^(.+?)\\\\(.+?)\\\\Service\\\\(V\d+)+(\\\\.+)Interface$/' |
Pattern for Web API interface name.
Definition at line 27 of file Config.php.