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


PHP UrlGenerator::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Create a new UrlGenerator instance.
  *
  * @param RouteCollection $routes
  * @param Request $request
  */
 public function __construct(RouteCollection $routes, Request $request)
 {
     parent::__construct(app('router')->getRoutes(), $request);
     $this->parser = app(Engine::class);
     if (defined('LOCALE')) {
         $this->forceRootUrl($this->getRootUrl($this->getScheme(null)) . '/' . LOCALE);
     }
 }
开发者ID:jacksun101,项目名称:streams-platform,代码行数:14,代码来源:UrlGenerator.php

示例2: __construct

 /**
  * Create a new URL Generator instance.
  *
  * @param  \Illuminate\Routing\RouteCollection $routes
  * @param  \Illuminate\Http\Request $request
  * @return void
  */
 public function __construct(RouteCollection $routes, Request $request)
 {
     parent::__construct($routes, $request);
     if (\Cache::has('assets-cdn::commitID')) {
         $this->commitID = \Cache::get('assets-cdn::commitID');
     } else {
         $this->commitID = exec('git rev-parse HEAD');
         \Cache::forever('assets-cdn::commitID', $this->commitID);
     }
     $this->cdnURL = config('assets-cdn.cdn-url');
 }
开发者ID:mezatech,项目名称:assets-cdn,代码行数:18,代码来源:UrlGenerator.php

示例3: __construct

 /**
  * Create a new URL Generator instance.
  *
  * @param  \Illuminate\Routing\RouteCollection  $routes
  * @param  \Illuminate\Http\Request  $request
  * @return void
  */
 public function __construct(RouteCollection $routes, Request $request, TenantManager $tenantManager)
 {
     parent::__construct($routes, $request);
     $this->tenantManager = $tenantManager;
 }
开发者ID:emtudo,项目名称:laravel-tenant-subdomain,代码行数:12,代码来源:UrlGenerator.php

示例4: __construct

 /**
  * Create a new URL Generator instance.
  *
  * @param  \Illuminate\Routing\RouteCollection  $routes
  * @param  \Illuminate\Http\Request  $request
  * @param  \Translator\Localizer $localizer
  * @return void
  */
 public function __construct(RouteCollection $routes, Request $request, Localizer $localizer)
 {
     parent::__construct($routes, $request);
     $this->localizer = $localizer;
 }
开发者ID:aewebsolutions,项目名称:laravel-translator,代码行数:13,代码来源:TranslatorURL.php

示例5: __construct

 public function __construct(RouteCollection $routes, Request $request)
 {
     parent::__construct($routes, $request);
     // force the generator to use https
     $this->forceSchema('https');
 }
开发者ID:dazza76,项目名称:laravel4secureurl,代码行数:6,代码来源:SecureUrlGenerator.php

示例6: __construct

 /**
  * Create a new URL Generator instance.
  *
  * @param  \Illuminate\Routing\RouteCollection $routes
  * @param  \Illuminate\Http\Request $request
  * @param Theme $theme
  */
 public function __construct(RouteCollection $routes, Request $request, Theme $theme)
 {
     $this->theme = $theme;
     parent::__construct($routes, $request);
 }
开发者ID:BryceHappy,项目名称:lavender,代码行数:12,代码来源:UrlGenerator.php

示例7: __construct

 /**
  * Constructor.
  *
  * @param RouteCollection $routes
  * @param Request         $request
  * @param TenantContract  $tenant
  */
 public function __construct(RouteCollection $routes, Request $request, TenantContract $tenant)
 {
     parent::__construct($routes, $request);
     $this->tenant = $tenant;
 }
开发者ID:illuminate3,项目名称:laravel-doctrine-tenancy,代码行数:12,代码来源:UrlGenerator.php

示例8: __construct

 public function __construct(RouteCollection $routes, Request $request, AssetManifest $manifest)
 {
     parent::__construct($routes, $request);
     $this->manifest = $manifest;
 }
开发者ID:nealstammers,项目名称:laravel-asset-manifest,代码行数:5,代码来源:AssetUrlGenerator.php


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