Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

CreateUser.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Search\Common\Slot;
8
9 use eZ\Publish\Core\SignalSlot\Signal;
10 use eZ\Publish\Core\Search\Common\Slot;
11
15 class CreateUser extends Slot
16 {
22 public function receive(Signal $signal)
23 {
24 if (!$signal instanceof Signal\UserService\CreateUserSignal) {
25 return;
26 }
27
28 $userContentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo(
29 $signal->userId
30 );
31
32 $this->searchHandler->indexContent(
33 $this->persistenceHandler->contentHandler()->load(
34 $userContentInfo->id,
35 $userContentInfo->currentVersionNo
36 )
37 );
38
39 $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent(
40 $userContentInfo->id
41 );
42 foreach ($locations as $location) {
43 $this->searchHandler->indexLocation($location);
44 }
45 }
46 }
eZ\Publish\Core\Search\Common\Slot\CreateUser
A Search Engine slot handling CreateUserSignal.
Definition: CreateUser.php:16
eZ\Publish\Core\Search\Common\Slot\CreateUser\receive
receive(Signal $signal)
Receive the given $signal and react on it.
Definition: CreateUser.php:22
eZ\Publish\Core\Search\Common\Slot
General slot implementation for Search Engines.
Definition: Search/Common/Slot.php:18
eZ\Publish\Core\SignalSlot\Signal
Base class for Signals.
Definition: Signal.php:18
eZ\Publish\Core\Search\Common\Slot
Definition: AbstractSubtree.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.