You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
861 B

3 years ago
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Routing\Matcher;
  11. use Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherTrait;
  12. use Symfony\Component\Routing\RequestContext;
  13. /**
  14. * Matches URLs based on rules dumped by CompiledUrlMatcherDumper.
  15. *
  16. * @author Nicolas Grekas <p@tchwork.com>
  17. */
  18. class CompiledUrlMatcher extends UrlMatcher
  19. {
  20. use CompiledUrlMatcherTrait;
  21. public function __construct(array $compiledRoutes, RequestContext $context)
  22. {
  23. $this->context = $context;
  24. [$this->matchHost, $this->staticRoutes, $this->regexpList, $this->dynamicRoutes, $this->checkCondition] = $compiledRoutes;
  25. }
  26. }