Caleb Cushing's Blog Also known as XenoTerraCide
Posts with the tag Bread::Board:

Providing with Providers and Bread::Board

| 2212 words | Bread::Board Dependency Injection object oriented design perl design patterns service locator pattern Inversion of Control provider pattern
So when I started using Dependency Injection the following problem happened, how do I Inject this dependency when the container is not accessible at this point. Ok, that sentence even confused me a little bit, so what do I mean. Let’s say I have a Repository for Products that is injected into my controller. Each Product stored has one or more ProductVariants that is part of it’s aggregate, which itself has Nested Categories.

Inversion of Control Principle

| 1413 words | Bread::Board Dependency Injection object oriented design perl Inversion of Control
If you’re not familiar with the term “Inversion of Control”( IoC ) or “Dependency Injection” ( DI )you may wish to start with Martin Fowler’s post on the subject. If you’re looking for a way to do it with Perl, Bread::Board is the way to go. This post however is about the theory behind it, and a path to grokitude if you’re finding the concepts challenging. I should advise that I am not yet a buddha on implementation.