当前位置: 首页>>代码示例>>PHP>>正文


PHP CompiledRoute::__construct方法代码示例

本文整理汇总了PHP中Symfony\Component\Routing\CompiledRoute::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CompiledRoute::__construct方法的具体用法?PHP CompiledRoute::__construct怎么用?PHP CompiledRoute::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\Routing\CompiledRoute的用法示例。


在下文中一共展示了CompiledRoute::__construct方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructs a new compiled route object.
  *
  * This is a ridiculously long set of constructor parameters, but as this
  * object is little more than a collection of values it's not a serious
  * problem. The parent Symfony class does the same, as well, making it
  * difficult to override differently.
  *
  * @param int $fit
  *   The fitness of the route.
  * @param string $pattern_outline
  *   The pattern outline for this route.
  * @param int $num_parts
  *   The number of parts in the path.
  * @param string $staticPrefix
  *   The static prefix of the compiled route
  * @param string $regex
  *   The regular expression to use to match this route
  * @param array $tokens
  *   An array of tokens to use to generate URL for this route
  * @param array $pathVariables
  *   An array of path variables
  * @param string|null $hostRegex
  *   Host regex
  * @param array $hostTokens
  *   Host tokens
  * @param array $hostVariables
  *   An array of host variables
  * @param array $variables
  *   An array of variables (variables defined in the path and in the host patterns)
  */
 public function __construct($fit, $pattern_outline, $num_parts, $staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array())
 {
     parent::__construct($staticPrefix, $regex, $tokens, $pathVariables, $hostRegex, $hostTokens, $hostVariables, $variables);
     $this->fit = $fit;
     $this->patternOutline = $pattern_outline;
     $this->numParts = $num_parts;
 }
开发者ID:ravibarnwal,项目名称:laraitassociate.in,代码行数:38,代码来源:CompiledRoute.php


注:本文中的Symfony\Component\Routing\CompiledRoute::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。