Jarves\Cache\ResponseCacher::getViewMTime PHP Method

getViewMTime() public method

public getViewMTime ( string $view ) : mixed
$view string
return mixed
    public function getViewMTime($view)
    {
        $view = $this->jarves->resolvePath($view, 'Resources/views/');
        if (!file_exists($view)) {
            throw new FileNotFoundException(sprintf('File `%s` not found.', $view));
        }
        return filemtime($view);
    }