Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Just improved doc while I'm reading it. #17

Merged
merged 1 commit into from

2 participants

@zdk

please consider if it's good to merge :)

@stevan stevan merged commit 69ffd90 into from
@stevan
Owner

Looks good to me, thank @zdk

@zdk

@stevan nice! thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 10, 2012
  1. @zdk

    Improve doc and example code

    zdk authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/Bread/Board/Manual/Concepts.pod
View
16 lib/Bread/Board/Manual/Concepts.pod
@@ -313,10 +313,10 @@ whose service is already resolved to that service.
=head2 Hierarchal Containers
-Up until now, we have see basic containers which only have a single
-level of components. As you application grows larger it may become
+Up until now, we have seen basic containers which only have a single
+level of components. As your application grows larger it may become
useful to have a more hierarchal approach to your containers.
-Bread::Board::Container supports this behavior through it's many
+Bread::Board::Container supports this behavior through its many
subcontainer methods. Here is an example of how we might re-arrange
the previous examples using subcontainers.
@@ -325,7 +325,7 @@ the previous examples using subcontainers.
my $db_c = Bread::Board::Container->new( name => 'database' );
$db_c->add_service(
Bread::Board::BlockInjection->new(
- name => 'connection'
+ name => 'db_conn'
block => sub {
my $s = shift;
return DBI->connect(
@@ -410,9 +410,9 @@ the previous examples using subcontainers.
)
);
-So as can be seen above, hierarchal containers can be used as a
-form of namespacing to better organize your Bread::Board
-configuration. As is shown with the 'authenticator' service,
+So, as an example that can be seen above, hierarchal containers can be used as a
+form of namespacing to organize your Bread::Board
+configuration better. As it is shown with the 'authenticator' service,
it is possible to address services outside of your container
using path notation. In this case the 'authenticator' service
makes the assumption that it's parent container has both a
@@ -432,7 +432,7 @@ Bread::Board configuration using the sugar layer.
my $c = container 'app' => as {
container 'database' => as {
- service 'connection' => (
+ service 'db_conn' => (
block => sub {
my $s = shift;
return DBI->connect(
Something went wrong with that request. Please try again.