Fixes poorly named event
Event names should be based on the class name, not the command name (so shouldn't ever need to contain the : character) Refs #1644
This commit is contained in:
parent
9f1fe611e4
commit
d2b2534699
|
|
@ -94,19 +94,19 @@ class OctoberMirror extends Command
|
|||
$paths->wildcards = $this->wildcards;
|
||||
|
||||
/**
|
||||
* @event system.console.october:mirror.extendPaths
|
||||
* @event system.console.mirror.extendPaths
|
||||
* Enables extending the `php artisan october:mirror` command
|
||||
*
|
||||
* You will have access to a $paths stdClass with `files`, `directories`, `wildcards` properties available for modifying.
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* Event::listen('system.console.october:mirror.extendPaths', function($paths) {
|
||||
* Event::listen('system.console.mirror.extendPaths', function($paths) {
|
||||
* $paths->directories = array_merge($paths->directories, ['plugins/myauthor/myplugin/public']);
|
||||
* });
|
||||
*
|
||||
*/
|
||||
Event::fire('system.console.october:mirror.extendPaths', [$paths]);
|
||||
Event::fire('system.console.mirror.extendPaths', [$paths]);
|
||||
|
||||
foreach ($paths->files as $file) {
|
||||
$this->mirrorFile($file);
|
||||
|
|
|
|||
Loading…
Reference in New Issue