-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from Indatus/develop
Advanced Scheduling: Arguments, Options and more
- Loading branch information
Showing
38 changed files
with
995 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php namespace Indatus\Dispatcher\Commands; | ||
|
||
/** | ||
* This file is part of Dispatcher | ||
|
@@ -8,7 +8,6 @@ | |
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace Indatus\Dispatcher\Commands; | ||
|
||
use Config; | ||
use Illuminate\Console\Command; | ||
|
@@ -17,7 +16,6 @@ | |
/** | ||
* View a summary for all scheduled artisan commands | ||
* @author Ben Kuhl <[email protected]> | ||
* @package Indatus\Dispatcher\Commands | ||
*/ | ||
class Make extends CommandMakeCommand | ||
{ | ||
|
@@ -53,8 +51,8 @@ protected function writeCommand($file, $stub) { | |
protected function extendStub($stub) | ||
{ | ||
$replacements = array( | ||
'use Illuminate\Console\Command' => "use Indatus\\Dispatcher\\ScheduledCommand;\n". | ||
"use Indatus\\Dispatcher\\Schedulable;\n". | ||
'use Illuminate\Console\Command' => "use Indatus\\Dispatcher\\Scheduling\\ScheduledCommand;\n". | ||
"use Indatus\\Dispatcher\\Scheduling\\Schedulable;\n". | ||
"use Indatus\\Dispatcher\\Drivers\\".ucwords(Config::get('dispatcher::driver'))."\\Scheduler", | ||
'extends Command {' => 'extends ScheduledCommand {', | ||
'parent::__construct();' => $this->getStub() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php namespace Indatus\Dispatcher\Commands; | ||
|
||
/** | ||
* This file is part of Dispatcher | ||
|
@@ -8,15 +8,13 @@ | |
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace Indatus\Dispatcher\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
use Indatus\Dispatcher\Services\CommandService; | ||
|
||
/** | ||
* Run any commands that should be run | ||
* @author Ben Kuhl <[email protected]> | ||
* @package Indatus\Dispatcher\Commands | ||
*/ | ||
class Run extends Command | ||
{ | ||
|
@@ -52,6 +50,7 @@ public function __construct(CommandService $commandService) | |
*/ | ||
public function fire() | ||
{ | ||
|
||
$this->commandService->runDue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.