| Name | Size | Mode | Actions |
|---|---|---|---|
| Traits/ | - | 0755 | rm |
| CollectionConfigurator.php | 3556 | 0644 | editdlrm |
| ImportConfigurator.php | 1980 | 0644 | editdlrm |
| RouteConfigurator.php | 1233 | 0644 | editdlrm |
| RoutingConfigurator.php | 2210 | 0644 | editdlrm |
/home/techb158/immovalet.com/vendor/symfony/routing/Loader/Configurator/RoutingConfigurator.php (2210B)
*/ class RoutingConfigurator { use Traits\AddTrait; private $loader; private $path; private $file; private $env; public function __construct(RouteCollection $collection, PhpFileLoader $loader, string $path, string $file, string $env = null) { $this->collection = $collection; $this->loader = $loader; $this->path = $path; $this->file = $file; $this->env = $env; } /** * @param string|string[]|null $exclude Glob patterns to exclude from the import */ final public function import($resource, string $type = null, bool $ignoreErrors = false, $exclude = null): ImportConfigurator { $this->loader->setCurrentDir(\dirname($this->path)); $imported = $this->loader->import($resource, $type, $ignoreErrors, $this->file, $exclude) ?: []; if (!\is_array($imported)) { return new ImportConfigurator($this->collection, $imported); } $mergedCollection = new RouteCollection(); foreach ($imported as $subCollection) { $mergedCollection->addCollection($subCollection); } return new ImportConfigurator($this->collection, $mergedCollection); } final public function collection(string $name = ''): CollectionConfigurator { return new CollectionConfigurator($this->collection, $name); } /** * Get the current environment to be able to write conditional configuration. */ final public function env(): ?string { return $this->env; } /** * @return static */ final public function withPath(string $path): self { $clone = clone $this; $clone->path = $clone->file = $path; return $clone; } }