Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30559

CreateUserGroupSignal is not emitted when User Group is created in the BackOffice

    Details

      Description

      Creating a new User Group won't emit UserService\CreateUserGroupSignal signal.

      Step to reproduce
      1. Clean installation of eZ Platform 2.5
      2. Create new slot in src/AppBundle/Slot/CreateUserGroupSlot.php:

      <?php
       
      namespace AppBundle\Slot;
       
      use eZ\Publish\Core\SignalSlot\Signal\UserService\CreateUserGroupSignal;
      use eZ\Publish\Core\SignalSlot\Slot as BaseSlot;
      use eZ\Publish\Core\SignalSlot\Signal;
       
      class CreateUserGroupSlot extends BaseSlot
      {
          public function receive(Signal $signal )
          {
              if (!$signal instanceof CreateUserGroupSignal)
              {
                  return;
              }
       
              die("CreateUserGroupSignal received!");
          }
      }
      
      

      3. In app/config/services.yml add:

          AppBundle\Slot\CreateUserGroupSlot:
              tags:
                  - { name: ezpublish.api.slot, signal: UserService\CreateUserGroupSignal }
      

      4. Create a new User Group

      Result
      A new User Group is created

      Expected result
      CreateUserGroupSignal should be sent, and script should be terminated with CreateUserGroupSignal received! message.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mateusz Bieniek
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: