no :PathPart -> :PathPart('subname')
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / ChildOf / Foo.pm
CommitLineData
141459fa 1package TestApp::Controller::Action::ChildOf::Foo;
2
3use strict;
4use warnings;
5
6use base qw/Catalyst::Controller/;
7
d416846e 8#
9# Child of current namespace
10#
09461385 11sub spoon :ChildOf('') :Args(0) { }
141459fa 12
d416846e 13#
14# Root for a action in a "parent" controller
15#
16sub higher_root :PathPart('childof/higher_root') :ChildOf('/') :Captures(1) { }
17
18#
19# Parent controller -> this subcontroller -> parent controller test
20#
09461385 21sub pcp2 :ChildOf('/action/childof/pcp1') :Captures(1) { }
d416846e 22
23#
24# Controllers not in parent/child relation. This tests the end.
25#
26sub cross2 :PathPart('end') :ChildOf('/action/childof/bar/cross1') :Args(1) { }
27
141459fa 281;