Acacha\Llum\Traits\LaravelConfigFile::addFileIntoMountPoint PHP Method

addFileIntoMountPoint() private method

Insert file into file using mountpoint.
private addFileIntoMountPoint ( $mountpoint, $fileToInsert, $outputFile = null ) : mixed
$mountpoint
$fileToInsert
return mixed
    private function addFileIntoMountPoint($mountpoint, $fileToInsert, $outputFile = null)
    {
        if ($outputFile != null) {
            passthru('sed -e \'/' . $mountpoint . '/r' . $fileToInsert . '\' ' . $this->laravel_services_file . ' > ' . $outputFile, $error);
        } else {
            passthru('sed -i \'/' . $mountpoint . '/r' . $fileToInsert . '\' ' . $this->laravel_services_file, $error);
        }
        return $error;
    }