當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。