Revision: 178
http://sourceforge.net/p/beeframework/code/178
Author: m_plomer
Date: 2014-07-10 17:11:32 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
- MVC: RegexMappingInvocationResolver - proper pattern ordering and test case
Modified Paths:
--------------
trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/RegexMappingInvocationResolver.php
Modified: trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/RegexMappingInvocationResolver.php
===================================================================
--- trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/RegexMappingInvocationResolver.php 2014-07-10 17:10:52 UTC (rev 177)
+++ trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/RegexMappingInvocationResolver.php 2014-07-10 17:11:32 UTC (rev 178)
@@ -169,16 +169,4 @@
return self::$methodMetadataMap[$methodFullName];
}
- public static function getWildcardCount($pattern) {
- $len = strlen(self::IGNORE_WILDCARD_TRAILING_PATTERN);
- if (substr($pattern, $len) == self::IGNORE_WILDCARD_TRAILING_PATTERN) {
- $pattern = substr(self::IGNORE_WILDCARD_TRAILING_PATTERN, 0, -$len);
- }
- return substr_count($pattern, '[^/]*') + 2 * substr_count($pattern, '(?:[^/]+/)*') + 2 * substr_count($pattern, '.*');
- }
-
- public static function getPatternLength($pattern) {
- $pattern = preg_replace('#\([^?].*?\)#', '#', $pattern);
- return strlen($pattern);
- }
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|