-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add new
VendorTagPublished
event (#36458)
* feature: add new VendorTagPublished event * fix: only fire event when something was published * refactor: fire event before erroring in console * revert: move event dispatch into else arm * chore: update comment on $paths * chore: publish to publishable * chore: add missing comment * Update VendorPublishCommand.php * Update VendorTagPublished.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
b063e22
commit 6cbe0eb
Showing
2 changed files
with
39 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Illuminate\Foundation\Events; | ||
|
||
class VendorTagPublished | ||
{ | ||
/** | ||
* The vendor tag that was published. | ||
* | ||
* @var string | ||
*/ | ||
public $tag; | ||
|
||
/** | ||
* The publishable paths registered by the tag. | ||
* | ||
* @var array | ||
*/ | ||
public $paths; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $tag | ||
* @param array $paths | ||
* @return void | ||
*/ | ||
public function __construct($tag, $paths) | ||
{ | ||
$this->tag = $tag; | ||
$this->paths = $paths; | ||
} | ||
} |