Skip to content

Commit

Permalink
Merge pull request #64 from yaoshanliang/master
Browse files Browse the repository at this point in the history
fixed bug of ErrorException: Constant CUSTOM_RULE already defined
  • Loading branch information
toplan committed Apr 13, 2016
2 parents 801d407 + cedd510 commit 7fccd5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Toplan/LaravelSms/SmsManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public function register()
protected function initPhpSms()
{
//export custom rule flag value
define('CUSTOM_RULE', SmsManager::CUSTOM_RULE_FLAG);
if (!defined('CUSTOM_RULE')) {
define('CUSTOM_RULE', SmsManager::CUSTOM_RULE_FLAG);
}

// define how to use queue
$queueJob = config('laravel-sms.queueJob', 'App\Jobs\SendReminderSms');
Expand Down

0 comments on commit 7fccd5d

Please sign in to comment.