Tag syncing is now done within the Component commands
This commit is contained in:
@@ -74,6 +74,13 @@ final class CreateComponentCommand
|
||||
*/
|
||||
public $meta;
|
||||
|
||||
/**
|
||||
* Tags string.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $tags;
|
||||
|
||||
/**
|
||||
* The validation rules.
|
||||
*
|
||||
@@ -88,23 +95,25 @@ final class CreateComponentCommand
|
||||
'group_id' => 'nullable|int',
|
||||
'enabled' => 'nullable|bool',
|
||||
'meta' => 'nullable|array',
|
||||
'tags' => 'nullable|string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Create a new add component command instance.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $description
|
||||
* @param int $status
|
||||
* @param string $link
|
||||
* @param int $order
|
||||
* @param int $group_id
|
||||
* @param bool $enabled
|
||||
* @param array|null $meta
|
||||
* @param string $name
|
||||
* @param string $description
|
||||
* @param int $status
|
||||
* @param string $link
|
||||
* @param int $order
|
||||
* @param int $group_id
|
||||
* @param bool $enabled
|
||||
* @param array|null $meta
|
||||
* @param string|null $tags
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($name, $description, $status, $link, $order, $group_id, $enabled, $meta)
|
||||
public function __construct($name, $description, $status, $link, $order, $group_id, $enabled, $meta, $tags = null)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->description = $description;
|
||||
@@ -114,5 +123,6 @@ final class CreateComponentCommand
|
||||
$this->group_id = $group_id;
|
||||
$this->enabled = $enabled;
|
||||
$this->meta = $meta;
|
||||
$this->tags = $tags;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,6 +78,13 @@ final class UpdateComponentCommand
|
||||
*/
|
||||
public $meta;
|
||||
|
||||
/**
|
||||
* The tags.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
public $tags;
|
||||
|
||||
/**
|
||||
* If this is true, we won't notify subscribers of the change.
|
||||
*
|
||||
@@ -114,11 +121,12 @@ final class UpdateComponentCommand
|
||||
* @param int|null $group_id
|
||||
* @param bool|null $enabled
|
||||
* @param array|null $meta
|
||||
* @param string|null $tags
|
||||
* @param bool $silent
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Component $component, $name = null, $description = null, $status = null, $link = null, $order = null, $group_id = null, $enabled = null, $meta = null, $silent = null)
|
||||
public function __construct(Component $component, $name = null, $description = null, $status = null, $link = null, $order = null, $group_id = null, $enabled = null, $meta = null, $tags = null, $silent = null)
|
||||
{
|
||||
$this->component = $component;
|
||||
$this->name = $name;
|
||||
@@ -129,6 +137,8 @@ final class UpdateComponentCommand
|
||||
$this->group_id = $group_id;
|
||||
$this->enabled = $enabled;
|
||||
$this->meta = $meta;
|
||||
$this->tags = $tags;
|
||||
$this->silent = $silent;
|
||||
$this->tags = $tags;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user