contrived
example using the L<JSON> module.
$c->add_service(
Bread::Board::SetterInjection->new(
name => 'json',
class => 'JSON',
dependencies =>
ethod's argument. In this case, the above is the
equivalent of doing:
my $json = JSON->new;
$json->utf8(1);
$json->pretty(1);
You might have been wondering about the fact we didn't specify