-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathChannelAuthenticatorInterface.php
More file actions
executable file
路40 lines (34 loc) 路 884 Bytes
/
Copy pathChannelAuthenticatorInterface.php
File metadata and controls
executable file
路40 lines (34 loc) 路 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
* This file is part of the FreshCentrifugoBundle.
*
* (c) Artem Henvald <genvaldartem@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\CentrifugoBundle\Service\ChannelAuthenticator;
use Symfony\Component\HttpFoundation\Request;
/**
* ChannelAuthenticatorInterface.
*
* @author Artem Henvald <genvaldartem@gmail.com>
*/
interface ChannelAuthenticatorInterface
{
/**
* @param string $channel
* @param Request $request
*
* @return bool
*/
public function supports(string $channel, Request $request): bool;
/**
* @param string $channel
* @param Request $request
*
* @return bool
*/
public function hasAccessToChannel(string $channel, Request $request): bool;
}