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

addTextIntoMountPoint() private method

Insert text into file using mountpoint. Mountpoint is maintained at file.
private addTextIntoMountPoint ( string $mountpoint, $textToAdd ) : integer | null
$mountpoint string
$textToAdd
return integer | null
    private function addTextIntoMountPoint($mountpoint, $textToAdd)
    {
        passthru('sed -i \'s/.*' . $mountpoint . '.*/ \\ \\ \\ \\ \\ \\ \\ ' . $this->scapeSingleQuotes(preg_quote($textToAdd)) . ',\\n \\ \\ \\ \\ \\ \\ \\ ' . $mountpoint . '/\' ' . $this->laravel_config_file, $error);
        return $error;
    }