You are viewing documentation for an outdated version. It is no longer supported!

Subscribers

To register event Subscribersopen in new window, state the class path of your subscribers inside the subscribers key, in your /config/events.php file.

<?php
return [

    // ... previous not shown ...
    'subscribers' => [

        \Acme\Imports\Subscribers\ImportEventSubscriber::class,
        \Acme\Users\Subscribers\UserEventSubscriber::class,
        \Acme\Api\Subscribers\ApiEventSubscriber::class,

        // ... etc
    ]
];