No Description

RouteConfigurator.php 897B

1234567891011121314151617181920212223242526272829303132333435
  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\Loader\Configurator;
  11. use Symfony\Component\Routing\RouteCollection;
  12. /**
  13. * @author Nicolas Grekas <p@tchwork.com>
  14. */
  15. class RouteConfigurator
  16. {
  17. use Traits\AddTrait;
  18. use Traits\RouteTrait;
  19. private $parentConfigurator;
  20. public function __construct(RouteCollection $collection, $route, string $name = '', CollectionConfigurator $parentConfigurator = null, array $prefixes = null)
  21. {
  22. $this->collection = $collection;
  23. $this->route = $route;
  24. $this->name = $name;
  25. $this->parentConfigurator = $parentConfigurator; // for GC control
  26. $this->prefixes = $prefixes;
  27. }
  28. }