private function addFileIntoMountPoint($mountpoint, $fileToInsert, $outputFile = null)
    {
        if ($outputFile != null) {
            passthru(
                'sed -e \'/'.$mountpoint.'/r'.$fileToInsert.'\' '.
                    str_replace(" ", "\ ", $this->laravel_services_file).' > '.$outputFile, $error);
        } else {
            passthru(
                'sed -i \'/'.$mountpoint.'/r'.$fileToInsert.'\' '.str_replace(" ", "\ ", $this->laravel_services_file), $error);
        }

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

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

@param $mountpoint
@param $fileToInsert

@return mixed
Insert file into file using mountpoint .