1 | <?php |
||
9 | final class Matcher implements MatcherInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\VoterInterface[] |
||
13 | */ |
||
14 | private $voters; |
||
15 | |||
16 | /** |
||
17 | * @param \Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\VoterInterface[] $voters |
||
18 | */ |
||
19 | public function __construct(array $voters) |
||
23 | |||
24 | /** |
||
25 | * Returns if provided siteaccess is allowed based on passed route config. |
||
26 | */ |
||
27 | public function isAllowed(string $siteAccess, array $routeConfig): bool |
||
38 | } |
||
39 |