Skip to content

Commit fb5e820

Browse files
GeertDDwouterj
authored andcommitted
Compiled PHP for customized route matching
1 parent 228111b commit fb5e820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ variables that are passed into the expression:
833833
Behind the scenes, expressions are compiled down to raw PHP. Our example
834834
would generate the following PHP in the cache directory::
835835

836-
if (rtrim($pathinfo, '/contact') === '' && (
836+
if (0 === strpos($pathinfo, '/contact') && (
837837
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
838838
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
839839
)) {

0 commit comments

Comments
 (0)