From 0da3c4c5f67ea5f1efa4b72e5590ec0e878ce8d6 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 26 Jun 2014 21:46:21 -0400 Subject: [PATCH] Update doc blocks for cakephp/cakephp#3532 --- src/Routing/DispatcherFilter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Routing/DispatcherFilter.php b/src/Routing/DispatcherFilter.php index fda2eb6aace..3d6ffb0ffa0 100644 --- a/src/Routing/DispatcherFilter.php +++ b/src/Routing/DispatcherFilter.php @@ -39,6 +39,12 @@ * When the above filter is connected to a dispatcher it will only fire * its `beforeDispatch` and `afterDispatch` methods on requests that start with `/blog`. * + * The for condition can also be a regular expression by using the `preg:` prefix: + * + * {{{ + * $filter = new BlogFilter(['for' => 'preg:#^/blog/\d+$#']); + * }}} + * * ### Limiting filters based on conditions * * In addition to simple path based matching you can use a closure to match on arbitrary request