Better syntax for registerHook
This commit is contained in:
parent
cc6bf0d1e6
commit
55ae6368ee
3 changed files with 4 additions and 10 deletions
|
|
@ -5,10 +5,7 @@ final class TTRSS_APIExtension extends Minz_Extension {
|
|||
|
||||
#[Override]
|
||||
public function init(): void {
|
||||
$this->registerHook(
|
||||
'post_update',
|
||||
array($this, 'postUpdateHook')
|
||||
);
|
||||
$this->registerHook('post_update', [self::class, 'postUpdateHook']);
|
||||
}
|
||||
|
||||
#[Override]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue