Revert "solved conflict composer.lock, config/app.php, workflow/engine/classes/SpoolRun.php"
This reverts commit fe9ac14379855e61eb560dabc1757eb7313210a9.
This commit is contained in:
3483
composer.lock
generated
3483
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -9,23 +9,24 @@ return [
|
|||||||
'url' => env('APP_URL', 'http://localhost'),
|
'url' => env('APP_URL', 'http://localhost'),
|
||||||
'env' => env('APP_ENV', 'production'),
|
'env' => env('APP_ENV', 'production'),
|
||||||
'debug' => env('APP_DEBUG', false),
|
'debug' => env('APP_DEBUG', false),
|
||||||
|
'log' => env('APP_LOG', 'single'),
|
||||||
|
'log_level' => env('APP_LOG_LEVEL', 'debug'),
|
||||||
'cache_lifetime' => env('APP_CACHE_LIFETIME', 60),
|
'cache_lifetime' => env('APP_CACHE_LIFETIME', 60),
|
||||||
'key' => env('APP_KEY', 'base64:rU28h/tElUn/eiLY0qC24jJq1rakvAFRoRl1DWxj/kM='),
|
'key' => env('APP_KEY', 'base64:rU28h/tElUn/eiLY0qC24jJq1rakvAFRoRl1DWxj/kM='),
|
||||||
'cipher' => 'AES-256-CBC',
|
'cipher' => 'AES-256-CBC',
|
||||||
'timezone' => 'UTC',
|
'timezone' => 'UTC',
|
||||||
'providers' => [
|
'providers' => [
|
||||||
FilesystemServiceProvider::class,
|
|
||||||
CacheServiceProvider::class,
|
CacheServiceProvider::class,
|
||||||
ViewServiceProvider::class,
|
FilesystemServiceProvider::class,
|
||||||
Illuminate\Database\DatabaseServiceProvider::class,
|
Illuminate\Database\DatabaseServiceProvider::class,
|
||||||
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
|
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
|
||||||
Illuminate\Queue\QueueServiceProvider::class,
|
Illuminate\Queue\QueueServiceProvider::class,
|
||||||
Illuminate\Translation\TranslationServiceProvider::class,
|
Illuminate\Translation\TranslationServiceProvider::class,
|
||||||
Illuminate\Encryption\EncryptionServiceProvider::class,
|
Illuminate\Encryption\EncryptionServiceProvider::class,
|
||||||
Laravel\Tinker\TinkerServiceProvider::class,
|
Laravel\Tinker\TinkerServiceProvider::class,
|
||||||
Illuminate\Notifications\NotificationServiceProvider::class,
|
ViewServiceProvider::class,
|
||||||
],
|
|
||||||
|
|
||||||
|
],
|
||||||
'aliases' => [
|
'aliases' => [
|
||||||
'Crypt' => Illuminate\Support\Facades\Crypt::class
|
'Crypt' => Illuminate\Support\Facades\Crypt::class
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -91,16 +91,6 @@ class SpoolRun
|
|||||||
$this->appMsgUid = $v;
|
$this->appMsgUid = $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the fileData property
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getFileData()
|
|
||||||
{
|
|
||||||
return $this->fileData;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the $spoolId
|
* Set the $spoolId
|
||||||
*
|
*
|
||||||
@@ -242,52 +232,32 @@ class SpoolRun
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set email parameters
|
* set email parameters
|
||||||
*
|
*
|
||||||
* @param string $appMsgUid
|
* @param string $sAppMsgUid , $sSubject, $sFrom, $sTo, $sBody, $sDate, $sCC, $sBCC, $sTemplate
|
||||||
* @param string $subject
|
* @return none
|
||||||
* @param string $from
|
|
||||||
* @param string $to
|
|
||||||
* @param string $body
|
|
||||||
* @param string $date
|
|
||||||
* @param string $cc
|
|
||||||
* @param string $bcc
|
|
||||||
* @param string $template
|
|
||||||
* @param array $attachments
|
|
||||||
* @param bool $contentTypeIsHtml
|
|
||||||
* @param string $error
|
|
||||||
*
|
|
||||||
* @see SpoolRun->create()
|
|
||||||
* @see SpoolRun->resendEmails()
|
|
||||||
*/
|
*/
|
||||||
public function setData($appMsgUid, $subject, $from, $to, $body, $date = '', $cc = '', $bcc = '', $template = '', $attachments = [],
|
public function setData($sAppMsgUid, $sSubject, $sFrom, $sTo, $sBody, $sDate = "", $sCC = "", $sBCC = "", $sTemplate = "", $aAttachment = array(), $bContentTypeIsHtml = true, $sError = "")
|
||||||
$contentTypeIsHtml = true, $error = '')
|
|
||||||
{
|
{
|
||||||
// Fill "fileData" property
|
$this->spoolId = $sAppMsgUid;
|
||||||
$this->spoolId = $appMsgUid;
|
$this->fileData['subject'] = $sSubject;
|
||||||
$this->fileData['subject'] = $subject;
|
$this->fileData['from'] = $sFrom;
|
||||||
$this->fileData['from'] = $from;
|
$this->fileData['to'] = $sTo;
|
||||||
$this->fileData['to'] = $to;
|
$this->fileData['body'] = $sBody;
|
||||||
$this->fileData['body'] = $body;
|
$this->fileData['date'] = ($sDate != '' ? $sDate : date('Y-m-d H:i:s'));
|
||||||
$this->fileData['date'] = (!empty($date) ? $date : date('Y-m-d H:i:s'));
|
$this->fileData['cc'] = $sCC;
|
||||||
$this->fileData['cc'] = $cc;
|
$this->fileData['bcc'] = $sBCC;
|
||||||
$this->fileData['bcc'] = $bcc;
|
$this->fileData['template'] = $sTemplate;
|
||||||
$this->fileData['template'] = $template;
|
$this->fileData['attachments'] = $aAttachment;
|
||||||
$this->fileData['attachments'] = $attachments;
|
$this->fileData['envelope_to'] = array();
|
||||||
$this->fileData["contentTypeIsHtml"] = $contentTypeIsHtml;
|
$this->fileData["contentTypeIsHtml"] = $bContentTypeIsHtml;
|
||||||
$this->fileData["error"] = $error;
|
$this->fileData["error"] = $sError;
|
||||||
|
|
||||||
// Initialize some values used internally
|
|
||||||
$this->fileData['envelope_to'] = [];
|
|
||||||
$this->fileData['envelope_cc'] = [];
|
|
||||||
$this->fileData['envelope_bcc'] = [];
|
|
||||||
|
|
||||||
// Domain validation when the email engine is "OpenMail"
|
|
||||||
if (array_key_exists('MESS_ENGINE', $this->config)) {
|
if (array_key_exists('MESS_ENGINE', $this->config)) {
|
||||||
if ($this->config['MESS_ENGINE'] === 'OPENMAIL') {
|
if ($this->config['MESS_ENGINE'] == 'OPENMAIL') {
|
||||||
if (!empty($this->config['MESS_SERVER'])) {
|
if ($this->config['MESS_SERVER'] != '') {
|
||||||
if (($domain = @gethostbyaddr($this->config['MESS_SERVER']))) {
|
if (($sAux = @gethostbyaddr($this->config['MESS_SERVER']))) {
|
||||||
$this->fileData['domain'] = $domain;
|
$this->fileData['domain'] = $sAux;
|
||||||
} else {
|
} else {
|
||||||
$this->fileData['domain'] = $this->config['MESS_SERVER'];
|
$this->fileData['domain'] = $this->config['MESS_SERVER'];
|
||||||
}
|
}
|
||||||
@@ -871,12 +841,4 @@ class SpoolRun
|
|||||||
|
|
||||||
return $appMsgUid;
|
return $appMsgUid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Run the private method "handleEnvelopeTo", this method was created in order to use in the unit tests
|
|
||||||
*/
|
|
||||||
public function runHandleEnvelopeTo()
|
|
||||||
{
|
|
||||||
$this->handleEnvelopeTo();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user