No Description

CompiledUrlMatcher.php 861B

1234567891011121314151617181920212223242526272829303132
  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. }