Laravel\Envoy\TaskContainer::writeCompiledEnvoyFile PHP Method

writeCompiledEnvoyFile() protected method

Write the compiled Envoy file to disk.
protected writeCompiledEnvoyFile ( Compiler $compiler, string $path, boolean $serversOnly ) : string
$compiler Compiler
$path string
$serversOnly boolean
return string
    protected function writeCompiledEnvoyFile($compiler, $path, $serversOnly)
    {
        file_put_contents($envoyPath = getcwd() . '/Envoy' . md5_file($path) . '.php', $compiler->compile(file_get_contents($path), $serversOnly));
        return $envoyPath;
    }