PHP 클래스 Webiny\Component\Rest\Compiler\Compiler

This array is then written on the disk in the compile path.
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__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