1Config::MVP::Reader::FiUnsdeerr(C3o)ntributed Perl DocumCeonntfaitgi:o:nMVP::Reader::Finder(3)
2
3
4
6 Config::MVP::Reader::Finder - a reader that finds an appropriate file
7
9 version 2.200012
10
12 The Finder reader multiplexes many other readers that implement the
13 Config::MVP::Reader::Findable role. It uses Module::Pluggable to
14 search for modules, limits them to objects implementing the Findable
15 role, and then selects the those which report that they are able to
16 read a configuration file found in the config root directory. If
17 exactly one findable configuration reader finds a file, it is used to
18 read the file and the configuration sequence is returned. Otherwise,
19 an exception is raised.
20
21 Config::MVP::Reader::Finder's "build_assembler" method will decline a
22 new assembler, so if none was passed to "read_config", the Findable
23 reader to which reading is delegated will be responsible for building
24 the assembler, unless a Finder subclass overrides "build_assembler" to
25 set a default across all possible delegates.
26
28 default_search_path
29 This is the default search path used to find configuration readers.
30 This method should return a list, and by default returns:
31
32 qw( Config::MVP::Reader )
33
35 Ricardo Signes <rjbs@cpan.org>
36
38 This software is copyright (c) 2021 by Ricardo Signes.
39
40 This is free software; you can redistribute it and/or modify it under
41 the same terms as the Perl 5 programming language system itself.
42
43
44
45perl v5.32.1 2021-01-27 Config::MVP::Reader::Finder(3)