class Illuminate / View / Compilers / Compiler
abstract

Compiler

Properties

protected

$files Filesystem

The filesystem instance.

Default: null
protected

$cachePath string

The cache path for the compiled views.

Default: null
protected

$basePath string

The base path that should be removed from paths before hashing.

Default: null
protected

$shouldCache bool

Determines if compiled views should be cached.

Default: null
protected

$compiledExtension string

The compiled view file extension.

Default: 'php'

Methods

public

__construct ( Filesystem $files , $cachePath , $basePath , $shouldCache , $compiledExtension ) : void

Create a new compiler instance.

Parameters

  • $files Filesystem
  • $cachePath string
  • $basePath string
  • $shouldCache bool
  • $compiledExtension string
public

getCompiledPath ( $path ) : string

Get the path to the compiled version of a view.

Parameters

  • $path string
public

isExpired ( $path ) : bool

Determine if the view at the given path is expired.

Parameters

  • $path string
protected

ensureCompiledDirectoryExists ( $path ) : void

Create the compiled file directory if necessary.

Parameters

  • $path string