summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_php/src/resource.php
blob: 9b2448b867f5093955a839b6ddc6ff25258c19f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

require_once '../vendor/autoload.php';
require_once 'bootstrap.php';

/**
 * The resource action handle the request and check the authentication + authorization of the request params
 * It check the QUERYSTRING params before the payload.
 */
$response = $authController->resourceAction(
    \Symfony\Component\HttpFoundation\Request::createFromGlobals() // Create an request object
);

$response->send(); // send the http response