Skip to content

Commit

Permalink
fix bug: vendor publish failure if app name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
toplan committed Jan 4, 2016
1 parent cb4d370 commit 05fc119
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ phpsms为laravel-sms提供了全套的短信发送机制,而且phpsms也有自
在项目根目录下运行如下composer命令:
```php
//安装2.2版本(推荐)
composer require 'toplan/laravel-sms:~2.2.0',
composer require 'toplan/laravel-sms:~2.2.1',

//安装开发中版本
composer require 'toplan/laravel-sms:dev-master'
Expand Down Expand Up @@ -271,7 +271,7 @@ scheme://your-domain.com/sms/voice-verify
]);
if ($validator->fails()) {
//验证失败后建议清空存储的短信发送信息,防止用户重复试错
\SmsManager::forgetSentInfo($uuid)
\SmsManager::forgetSentInfo($uuid);
return redirect()->back()->withErrors($validator);
}
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "toplan/laravel-sms",
"description": "sms send package for laravel",
"license": "MIT",
"version": "2.2.0",
"version": "2.2.1",
"keywords": ["sms", "laravel sms", "laravel-sms"],
"authors": [
{
Expand Down
6 changes: 3 additions & 3 deletions src/Toplan/LaravelSms/SmsManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ protected function initPhpSms()

// define how to use queue
$queueJob = config('laravel-sms.queueJob', 'App\Jobs\SendReminderSms');
if (!class_exists($queueJob)) {
throw new LaravelSmsException("Class [$queueJob] does not exists.");
}
Sms::queue(function($sms, $data) use ($queueJob){
if (!class_exists($queueJob)) {
throw new LaravelSmsException("Class [$queueJob] does not exists.");
}
$this->dispatch(new $queueJob($sms));
return [
'success' => true,
Expand Down

0 comments on commit 05fc119

Please sign in to comment.