@@ -175,10 +175,6 @@ Sort the result by name or by type (directories first, then files)::
175
175
as its argument to use PHP's `natural sort order `_ algorithm instead (e.g.
176
176
``file1.txt ``, ``file2.txt ``, ``file10.txt ``).
177
177
178
- .. versionadded :: 4.2
179
-
180
- The option to use the natural sort order was introduced in Symfony 4.2.
181
-
182
178
Sort the files and directories by the last accessed, changed or modified time::
183
179
184
180
$finder->sortByAccessedTime();
@@ -198,10 +194,6 @@ You can reverse any sorting by using the ``reverseSorting()`` method::
198
194
// results will be sorted "Z to A" instead of the default "A to Z"
199
195
$finder->sortByName()->reverseSorting();
200
196
201
- .. versionadded :: 4.2
202
-
203
- The ``reverseSorting() `` method was introduced in Symfony 4.2.
204
-
205
197
.. note ::
206
198
207
199
Notice that the ``sort* `` methods need to get all matching elements to do
@@ -238,11 +230,6 @@ Multiple filenames can be excluded by chaining calls or passing an array::
238
230
// same as above
239
231
$finder->files()->notName(['*.rb', '*.py']);
240
232
241
- .. versionadded :: 4.2
242
-
243
- Support for passing arrays to ``name() `` and ``notName() `` was introduced
244
- in Symfony 4.2
245
-
246
233
File Contents
247
234
~~~~~~~~~~~~~
248
235
@@ -285,10 +272,6 @@ Multiple paths can be defined by chaining calls or passing an array::
285
272
// same as above
286
273
$finder->path(['data', 'foo/bar']);
287
274
288
- .. versionadded :: 4.2
289
-
290
- Support for passing arrays to ``path() `` was introduced in Symfony 4.2
291
-
292
275
Internally, strings are converted into regular expressions by escaping slashes
293
276
and adding delimiters:
294
277
@@ -328,10 +311,6 @@ Restrict by a size range by chaining calls or passing an array::
328
311
// same as above
329
312
$finder->files()->size(['>= 1K', '<= 2K']);
330
313
331
- .. versionadded :: 4.2
332
-
333
- Support for passing arrays to ``size() `` was introduced in Symfony 4.2
334
-
335
314
The comparison operator can be any of the following: ``> ``, ``>= ``, ``< ``, ``<= ``,
336
315
``== ``, ``!= ``.
337
316
@@ -354,10 +333,6 @@ Restrict by a date range by chaining calls or passing an array::
354
333
// same as above
355
334
$finder->date(['>= 2018-01-01', '<= 2018-12-31']);
356
335
357
- .. versionadded :: 4.2
358
-
359
- Support for passing arrays to ``date() `` was introduced in Symfony 4.2
360
-
361
336
The comparison operator can be any of the following: ``> ``, ``>= ``, ``< ``, ``<= ``,
362
337
``== ``. You can also use ``since `` or ``after `` as an alias for ``> ``, and
363
338
``until `` or ``before `` as an alias for ``< ``.
@@ -380,10 +355,6 @@ Restrict by a depth range by chaining calls or passing an array::
380
355
// same as above
381
356
$finder->depth(['> 2', '< 5']);
382
357
383
- .. versionadded :: 4.2
384
-
385
- Support for passing arrays to ``depth() `` was introduced in Symfony 4.2
386
-
387
358
Custom Filtering
388
359
~~~~~~~~~~~~~~~~
389
360
0 commit comments