You are here

public function ProviderBasedGenerator::supports in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/ProviderBasedGenerator.php \Symfony\Cmf\Component\Routing\ProviderBasedGenerator::supports()

Support a route object and any string as route name

Overrides VersatileGeneratorInterface::supports

1 call to ProviderBasedGenerator::supports()
ContentAwareGenerator::supports in vendor/symfony-cmf/routing/ContentAwareGenerator.php
We additionally support empty name and data in parameters and RouteAware content
1 method overrides ProviderBasedGenerator::supports()
ContentAwareGenerator::supports in vendor/symfony-cmf/routing/ContentAwareGenerator.php
We additionally support empty name and data in parameters and RouteAware content

File

vendor/symfony-cmf/routing/ProviderBasedGenerator.php, line 71

Class

ProviderBasedGenerator
A Generator that uses a RouteProvider rather than a RouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function supports($name) {
  return is_string($name) || $name instanceof SymfonyRoute;
}