mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
refactor model event again
This commit is contained in:
@@ -17,14 +17,17 @@ class TorrentUpdated
|
||||
|
||||
public ?Model $model = null;
|
||||
|
||||
public ?Model $modelOld = null;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Model $model)
|
||||
public function __construct(Model $model, Model $modelOld)
|
||||
{
|
||||
$this->model = $model;
|
||||
$this->modelOld = $modelOld;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user