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:
Samuel Georges 2017-11-27 12:14:06 +11:00
parent 9f1fe611e4
commit d2b2534699
1 changed files with 3 additions and 3 deletions

View File

@ -94,19 +94,19 @@ class OctoberMirror extends Command
$paths->wildcards = $this->wildcards; $paths->wildcards = $this->wildcards;
/** /**
* @event system.console.october:mirror.extendPaths * @event system.console.mirror.extendPaths
* Enables extending the `php artisan october:mirror` command * Enables extending the `php artisan october:mirror` command
* *
* You will have access to a $paths stdClass with `files`, `directories`, `wildcards` properties available for modifying. * You will have access to a $paths stdClass with `files`, `directories`, `wildcards` properties available for modifying.
* *
* Example usage: * 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']); * $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) { foreach ($paths->files as $file) {
$this->mirrorFile($file); $this->mirrorFile($file);