From 833c6a32e941baa6570feaa4c2a501f17e16019b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kami=C5=84ski?= Date: Sat, 30 Sep 2023 20:24:08 +0200 Subject: [PATCH] [WebProfilerBundle] Document `!` operator negating url filter --- profiler.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profiler.rst b/profiler.rst index e8b587eb9c1..b21132a5816 100644 --- a/profiler.rst +++ b/profiler.rst @@ -79,15 +79,22 @@ look for tokens based on some criteria:: // gets the latest 10 tokens $tokens = $profiler->find('', '', 10, '', '', ''); - // gets the latest 10 tokens for all URL containing /admin/ + // gets the latest 10 tokens for all URLs containing /admin/ $tokens = $profiler->find('', '/admin/', 10, '', '', ''); + // gets the latest 10 tokens for all URLs not containing /api/ + $tokens = $profiler->find('', '!/api/', 10, '', '', ''); + // gets the latest 10 tokens for local POST requests $tokens = $profiler->find('127.0.0.1', '', 10, 'POST', '', ''); // gets the latest 10 tokens for requests that happened between 2 and 4 days ago $tokens = $profiler->find('', '', 10, '', '4 days ago', '2 days ago'); +.. versionadded:: 6.4 + + Prefixing the URL filter with a ``!`` symbol to negate the query was introduced in Symfony 6.4. + Data Collectors --------------- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy