From 43cdd28ff3970576ae63c59e3e43649901ed50df Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 4 Jan 2012 08:51:21 +0100 Subject: [PATCH] Introduce Symfony\\Component\\Finder\\SplFileInfo --- components/finder.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/finder.rst b/components/finder.rst index 70fe04a1cfb..5e43e691bae 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -31,7 +31,9 @@ directories:: print $file->getRealpath()."\n"; } -The ``$file`` is an instance of :phpclass:`SplFileInfo`. +The ``$file`` is an instance of :class:`Symfony\\Component\\Finder\\SplFileInfo` +which extends :phpclass:`SplFileInfo` to provide methods to work with relative +paths. The above code prints the names of all the files in the current directory recursively. The Finder class uses a fluent interface, so all methods return