CompilerInterface.php
TLDR
This file is an interface definition for the CompilerInterface
in the Illuminate\View\Compilers
namespace.
Methods
getCompiledPath
This method takes a $path
parameter and returns the path to the compiled version of a view.
isExpired
This method takes a $path
parameter and determines if the given view is expired.
compile
This method takes a $path
parameter and compiles the view at the given path.
<?php
namespace Illuminate\View\Compilers;
interface CompilerInterface
{
/**
* Get the path to the compiled version of a view.
*
* @param string $path
* @return string
*/
public function getCompiledPath($path);
/**
* Determine if the given view is expired.
*
* @param string $path
* @return bool
*/
public function isExpired($path);
/**
* Compile the view at the given path.
*
* @param string $path
* @return void
*/
public function compile($path);
}