PHP Класс Webiny\Component\Rest\Compiler\Compiler

This array is then written on the disk in the compile path.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $api, boolean $normalize, Cache $cache ) Base constructor.
writeCacheFiles ( ParsedApi $parsedApi ) Based on the given ParsedApi instance, the method will create several cache file and update the cache index.

Приватные методы

Метод Описание
compileCacheFile ( ParsedClass $parsedClass, string $version ) : array This method does the actual processing of ParsedClass instance into a compiled array that is later written into a cache file.

Описание методов

__construct() публичный Метод

Base constructor.
public __construct ( string $api, boolean $normalize, Cache $cache )
$api string Name of the api configuration.
$normalize boolean Should the class name and the method name be normalized.
$cache Cache Current compiler cache instance.

writeCacheFiles() публичный Метод

Based on the given ParsedApi instance, the method will create several cache file and update the cache index.
public writeCacheFiles ( ParsedApi $parsedApi )
$parsedApi Webiny\Component\Rest\Parser\ParsedApi