summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_php/src/vhost.php
blob: 3f49de4a882ab25a42d19d9ba84a11133ce06594 (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->vhostAction(
    \Symfony\Component\HttpFoundation\Request::createFromGlobals() // Create an request object
);

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