class RouteConfigurator
@author Nicolas Grekas <p@tchwork.com>
Hierarchy
- class \Symfony\Component\Routing\Loader\Configurator\RouteConfigurator uses \Traits\AddTrait, \Traits\HostTrait, \Traits\RouteTrait
Expanded class hierarchy of RouteConfigurator
1 file declares its use of RouteConfigurator
- AddTrait.php in vendor/
symfony/ routing/ Loader/ Configurator/ Traits/ AddTrait.php
File
-
vendor/
symfony/ routing/ Loader/ Configurator/ RouteConfigurator.php, line 19
Namespace
Symfony\Component\Routing\Loader\ConfiguratorView source
class RouteConfigurator {
use Traits\AddTrait;
use Traits\HostTrait;
use Traits\RouteTrait;
public function __construct(RouteCollection $collection, RouteCollection $route, string $name = '', ?CollectionConfigurator $parentConfigurator = null, ?array $prefixes = null) {
$this->collection = $collection;
$this->route = $route;
$this->name = $name;
$this->prefixes = $prefixes;
}
/**
* Sets the host to use for all child routes.
*
* @param string|array $host the host, or the localized hosts
*
* @return $this
*/
public final function host(string|array $host) : static {
$this->addHost($this->route, $host);
return $this;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RouteConfigurator::host | final public | function | Sets the host to use for all child routes. |
RouteConfigurator::__construct | public | function |