From: André Walker Date: Tue, 2 Aug 2011 01:22:10 +0000 (-0300) Subject: pod for build_component_subcontainer X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=309caf3973a37bbe07a407ea8230ad4ee888d15b pod for build_component_subcontainer --- diff --git a/lib/Catalyst/IOC/Container.pm b/lib/Catalyst/IOC/Container.pm index 051f758..2569d1d 100644 --- a/lib/Catalyst/IOC/Container.pm +++ b/lib/Catalyst/IOC/Container.pm @@ -715,17 +715,27 @@ Catalyst::Container - IOC for Catalyst components =head1 Building Containers +=head2 build_component_subcontainer + +Container that stores all components, i.e. all models, views and controllers +together. Each service is an instance of the actual component, and by default +it lives while the application is running. Retrieving components from this +subcontainer will instantiate the component, if it hasn't been instantiated +already, but will not execute ACCEPT_CONTEXT. + =head2 build_model_subcontainer -Container that stores all models. +Container that stores references for all models that are inside the components +subcontainer. Retrieving a model triggers ACCEPT_CONTEXT, if it exists. =head2 build_view_subcontainer -Container that stores all views. +Same as L, but for views. =head2 build_controller_subcontainer -Container that stores all controllers. +Same as L, but for controllers. The difference is +that there is no ACCEPT_CONTEXT for controllers. =head1 Building Services