PHP Class Webiny\Component\Rest\Compiler\Compiler

This array is then written on the disk in the compile path.
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

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() public method

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