Skip to content
Permalink
Browse files

Re-add Router::parseExtensions() for easy migration.

Using it will trigger a warning.
  • Loading branch information...
ADmad committed Sep 7, 2014
1 parent 8b08259 commit ce3042f6c8901bfa27e769851228b8ae24c553e0
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/Routing/Router.php
@@ -708,6 +708,23 @@ public static function normalize($url = '/') {
return $url;
}
/**
* Deprecated method for backwards compatibility.
*
* @param string|array $extensions List of extensions to be added.
* @param bool $merge Whether to merge with or override existing extensions.
* Defaults to `true`.
* @return array Extensions list.
* @deprecated 3.0.0 Use Router::extensions() instead.
*/
public static function parseExtensions($extensions = null, $merge = true) {
trigger_error(
'Router::parseExtensions() is deprecated should use Router::extensions() instead.',
E_USER_DEPRECATED
);
return static::extensions($extensions, compact('merge'));
}
/**
* Get/Set valid extensions. Instructs the router to parse out file extensions
* from the URL. For example, http://example.com/posts.rss would yield a file

0 comments on commit ce3042f

Please sign in to comment.
You can’t perform that action at this time.