# fluent-support/trunk/app/Hooks/Handlers/AsyncActionHandler.php

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version trunk. 21 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/trunk/code/app/Hooks/Handlers/AsyncActionHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-support/trunk/raw/app/Hooks/Handlers/AsyncActionHandler.php
- Modified: 2026-05-20T14:52:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-support/trunk/code/app/Hooks/Handlers/AsyncActionHandler.php#L10-L20`.

```php
<?php

namespace FluentSupport\App\Hooks\Handlers;

use FluentSupport\App\Models\Agent;
use FluentSupport\App\Models\Ticket;

class AsyncActionHandler
{
    public function resolveAgentAssigned($agentId, $ticketId, $assignerId, $previousAgentId = 0)
    {
        $agent = Agent::find($agentId);
        $ticket = Ticket::find($ticketId);
        $assigner = Agent::find($assignerId);

        if ($agent && $ticket) {
            do_action('fluent_support/agent_assigned_to_ticket', $agent, $ticket, $assigner ?: $agent, $previousAgentId);
        }
    }
}

```
