RouteConfigurator.php 897 B

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