Finder::append()

Finder|SplFileInfo[] append(mixed $iterator) Appends an existing set of files/directories to the finder. The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array. Parameters mixed $iterator Return Value Finder|SplFileInfo[] The finder Exceptions InvalidArgumentException When the given argument is not iterable.

Finder::count()

int count() Counts all the results collected by the iterators. Return Value int

Finder::contains()

Finder|SplFileInfo[] contains(string $pattern) Adds tests that file contents must match. Strings or PCRE patterns can be used: $finder->contains('Lorem ipsum') $finder->contains('/Lorem ipsum/i') Parameters string $pattern A pattern (string or regexp) Return Value Finder|SplFileInfo[] The current Finder instance See also FilecontentFilterIterator

Finder::addVCSPattern()

static addVCSPattern(string|string[] $pattern) Adds VCS patterns. Parameters string|string[] $pattern VCS patterns to ignore See also ignoreVCS()

Finder

class Finder implements IteratorAggregate, Countable Finder allows to build rules to find files and directories. It is a thin wrapper around several specialized iterator classes. All rules may be invoked several times. All methods return the current Finder object to allow easy chaining: $finder = Finder::create()->files()->name('*.php')->in(DIR); Constants IGNORE_VCS_FILES IGNORE_DOT_FILES Methods __construct() Constructor. static Finder create() Creates a new Fin

FilterResponseEvent

class FilterResponseEvent extends KernelEvent Allows to filter a Response object. You can call getResponse() to retrieve the current response. With setResponse() you can set a new response that will be returned to the browser. Methods bool isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event setDispatcher(EventDispatcherInterface $dispatcher) depre

FilterResponseEvent::getResponse()

Response getResponse() Returns the current response object. Return Value Response

FilterResponseEvent::setResponse()

setResponse(Response $response) Sets a new response object. Parameters Response $response

FilterIterator

class FilterIterator extends FilterIterator This iterator just overrides the rewind method in order to correct a PHP bug, which existed before version 5.5.23/5.6.7. Methods rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases. Details rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after

FilterControllerEvent::setController()

setController(callable $controller) Sets a new controller. Parameters callable $controller