當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Router::findPatternFilters方法代碼示例

本文整理匯總了PHP中Illuminate\Routing\Router::findPatternFilters方法的典型用法代碼示例。如果您正苦於以下問題:PHP Router::findPatternFilters方法的具體用法?PHP Router::findPatternFilters怎麽用?PHP Router::findPatternFilters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Routing\Router的用法示例。


在下文中一共展示了Router::findPatternFilters方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getPatternFilters

 /**
  * Get all of the pattern filters matching the route.
  *
  * @param  \Illuminate\Routing\Route  $route
  * @return array
  */
 protected function getPatternFilters($route)
 {
     $patterns = array();
     foreach ($route->getMethods() as $method) {
         $inner = $this->router->findPatternFilters($method, $route->getPath());
         $patterns = array_merge($patterns, $inner);
     }
     return $patterns;
 }
開發者ID:centaurustech,項目名稱:sagip,代碼行數:15,代碼來源:RoutesCommand.php

示例2: findPatternFilters

 /**
  * Find the patterned filters matching a request.
  *
  * @param \Illuminate\Http\Request $request
  * @return array 
  * @deprecated since version 5.1.
  * @static 
  */
 public static function findPatternFilters($request)
 {
     return \Illuminate\Routing\Router::findPatternFilters($request);
 }
開發者ID:satriashp,項目名稱:tour,代碼行數:12,代碼來源:_ide_helper.php

示例3: getMethodPatterns

 /**
  * Get the pattern filters for a given URI and method.
  *
  * @param  string  $uri
  * @param  string  $method
  * @return array
  */
 protected function getMethodPatterns($uri, $method)
 {
     return $this->router->findPatternFilters(Request::create($uri, $method));
 }
開發者ID:mawaha,項目名稱:tracker,代碼行數:11,代碼來源:RoutesCommand.php

示例4: getAllBeforeFilters

 /**
  * Get all of the before filters to run on the route.
  *
  * @param  \Symfony\Component\HttpFoundation\Request  $request
  * @return array
  */
 protected function getAllBeforeFilters(Request $request)
 {
     $before = $this->getBeforeFilters();
     return array_merge($before, $this->router->findPatternFilters($request));
 }
開發者ID:shinichi81,項目名稱:laravel4demo,代碼行數:11,代碼來源:Route.php

示例5: getAllBeforeFilters

 /**
  * Get all of the before filters to run on the route.
  *
  * @param  \Symfony\Component\HttpFoundation\Request  $request
  * @return array
  */
 protected function getAllBeforeFilters(Request $request)
 {
     $before = $this->getBeforeFilters();
     $patterns = $this->router->findPatternFilters($request->getMethod(), $request->getPathInfo());
     return array_merge($before, $patterns);
 }
開發者ID:Thomvh,項目名稱:turbine,代碼行數:12,代碼來源:Route.php

示例6: findPatternFilters

 /**
  * Find the patterned filters matching a request.
  * 
  * @param  string  $method
  * @param  string  $path
  * @return array
  */
 public function findPatternFilters($method, $path)
 {
     $filters = parent::findPatternFilters($method, $path);
     foreach ($this->httpVerbFilters as $verb => $values) {
         if ($verb == strtolower($method)) {
             $filters = array_merge($filters, $values);
         }
     }
     return $filters;
 }
開發者ID:jasonlewis,項目名稱:enhanced-router,代碼行數:17,代碼來源:Router.php


注:本文中的Illuminate\Routing\Router::findPatternFilters方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。