# Remember to update this in Catalyst::Runtime as well!
-our $VERSION = '5.7099_02';
+our $VERSION = '5.7014';
sub import {
my ( $class, @arguments ) = @_;
# regexp fallback
$query = qr/$name/i;
- @result = map { $c->components->{ $_ } } grep { $eligible{ $_ } =~ m{$query} } keys %eligible;
-
- # no results? try against full names
- if( !@result ) {
- @result = map { $c->components->{ $_ } } grep { m{$query} } keys %eligible;
- }
+ @result = grep { $eligible{ $_ } =~ m{$query} } keys %eligible;
# don't warn if we didn't find any results, it just might not exist
if( @result ) {
Any extra arguments are directly passed to ACCEPT_CONTEXT.
If the name is omitted, it will look for
- - a model object in $c->stash->{current_model_instance}, then
+ - a model object in $c->stash{current_model_instance}, then
- a model name in $c->stash->{current_model}, then
- a config setting 'default_model', or
- check if there is only one model, and return it if that's the case.
Any extra arguments are directly passed to ACCEPT_CONTEXT.
If the name is omitted, it will look for
- - a view object in $c->stash->{current_view_instance}, then
+ - a view object in $c->stash{current_view_instance}, then
- a view name in $c->stash->{current_view}, then
- a config setting 'default_view', or
- check if there is only one view, and return it if that's the case.
reference. Items in the array beginning with C<::> will have the
application class name prepended to them.
-All components found will also have any
-L<Devel::InnerPackage|inner packages> loaded and set up as components.
-Note, that modules which are B<not> an I<inner package> of the main
-file namespace loaded will not be instantiated as components.
-
=cut
sub setup_components {
=head2 L<Catalyst::Test> - The test suite.
-=head1 PROJECT FOUNDER
-
-sri: Sebastian Riedel <sri@cpan.org>
+=head1 CREDITS
-=head1 CONTRIBUTORS
+Andy Grundman
-abw: Andy Wardley
+Andy Wardley
-acme: Leon Brocard <leon@astray.com>
+Andreas Marienborg
Andrew Bramble
Andrew Ruthven
-andyg: Andy Grundman <andy@hybridized.org>
+Arthur Bergman
-audreyt: Audrey Tang
+Autrijus Tang
-bricas: Brian Cassidy <bricas@cpan.org>
+Brian Cassidy
-chansen: Christian Hansen
+Carl Franks
-chicks: Christopher Hicks
+Christian Hansen
-dkubb: Dan Kubb <dan.kubb-cpan@onautopilot.com>
+Christopher Hicks
-Drew Taylor
+Dan Sully
+
+Danijel Milicevic
-esskar: Sascha Kiefer
+David Kamholz
-fireartist: Carl Franks <cfranks@cpan.org>
+David Naughton
-gabb: Danijel Milicevic
+Drew Taylor
Gary Ashton Jones
Geoff Richards
-jcamacho: Juan Camacho
+Jesse Sheidlower
+
+Jesse Vincent
Jody Belka
Johan Lindstrom
-jon: Jon Schutz <jjschutz@cpan.org>
-
-marcus: Marcus Ramberg <mramberg@cpan.org>
-
-miyagawa: Tatsuhiko Miyagawa <miyagawa@bulknews.net>
+Juan Camacho
-mst: Matt S. Trout <mst@shadowcatsystems.co.uk>
+Leon Brocard
-mugwump: Sam Vilain
+Marcus Ramberg
-naughton: David Naughton
+Matt S Trout
-ningu: David Kamholz <dkamholz@cpan.org>
+Robert Sedlacek
-nothingmuch: Yuval Kogman <nothingmuch@woobling.org>
+Sam Vilain
-numa: Dan Sully <daniel@cpan.org>
+Sascha Kiefer
-obra: Jesse Vincent
+Sebastian Willert
-omega: Andreas Marienborg
+Tatsuhiko Miyagawa
-phaylon: Robert Sedlacek <phaylon@dunkelheit.at>
-
-sky: Arthur Bergman
+Ulf Edvinsson
-the_jester: Jesse Sheidlower
+Yuval Kogman
-Ulf Edvinsson
+=head1 AUTHOR
-willert: Sebastian Willert <willert@cpan.org>
+Sebastian Riedel, C<sri@oook.de>
=head1 LICENSE