mirror of
https://github.com/nextcloud/documentation.git
synced 2026-04-13 06:17:21 +07:00
Merge pull request #11427 from michielbdejong/patch-1
correct variable name
This commit is contained in:
@@ -99,7 +99,7 @@ You can use simple callback to react on events. They will receive the event obje
|
||||
class Application extends App {
|
||||
public function __construct() {
|
||||
parent::__construct('myapp');
|
||||
/* @var IEventDispatcher $eventDispatcher */
|
||||
/* @var IEventDispatcher $dispatcher */
|
||||
$dispatcher = $this->getContainer()->query(IEventDispatcher::class);
|
||||
$dispatcher->addListener(AddEvent::class, function(AddEvent $event) {
|
||||
// ...
|
||||
|
||||
Reference in New Issue
Block a user