PHP 클래스 Minify_Source_Factory, minify

파일 보기 프로젝트 열기: mrclay/minify

보호된 프로퍼티들

프로퍼티 타입 설명
$env Minify_Env
$handlers callable[]
$options array

공개 메소드들

메소드 설명
__construct ( Minify_Env $env, array $options = [], Minify_CacheInterface $cache = null )
checkIsFile ( string $file ) : string
makeSource ( mixed $spec ) : Minify_SourceInterface
setHandler ( string $basenamePattern, callable $handler )

메소드 상세

__construct() 공개 메소드

public __construct ( Minify_Env $env, array $options = [], Minify_CacheInterface $cache = null )
$env Minify_Env
$options array noMinPattern : Pattern matched against basename of the filepath (if present). If the pattern matches, Minify will try to avoid re-compressing the resource. fileChecker : Callable responsible for verifying the existence of the file. resolveDocRoot : If true, a leading "//" will be replaced with the document root. checkAllowDirs : If true, the filepath will be verified to be within one of the directories specified by allowDirs. allowDirs : Directory paths in which sources can be served. uploaderHoursBehind : How many hours behind are the file modification times of uploaded files? If you upload files from Windows to a non-Windows server, Windows may report incorrect mtimes for the files. Immediately after modifying and uploading a file, use the touch command to update the mtime on the server. If the mtime jumps ahead by a number of hours, set this variable to that number. If the mtime moves back, this should not be needed.
$cache Minify_CacheInterface Optional cache for handling .less files.

checkIsFile() 공개 메소드

public checkIsFile ( string $file ) : string
$file string
리턴 string

makeSource() 공개 메소드

public makeSource ( mixed $spec ) : Minify_SourceInterface
$spec mixed
리턴 Minify_SourceInterface

setHandler() 공개 메소드

public setHandler ( string $basenamePattern, callable $handler )
$basenamePattern string A pattern tested against basename. E.g. "~\.css$~"
$handler callable Function that recieves a $spec array and returns a Minify_SourceInterface

프로퍼티 상세

$env 보호되어 있는 프로퍼티

protected Minify_Env $env
리턴 Minify_Env

$handlers 보호되어 있는 프로퍼티

protected callable[] $handlers
리턴 callable[]

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array