Skip to content

Commit f20271b

Browse files
author
Jon Acker
committed
Update README.md
1 parent a94175f commit f20271b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ And the class itself will implement __dependencies() thus:
184184
}
185185
```
186186

187-
Your controller will still be coupled to Mage due to extending Controller, and thus - untestable, but it will be clear what the controllers dependencies are and they will be type-hinted.
187+
Unfortunately your controller will still be coupled to Mage due to extending Mage_Core_Controller_Front_Action, and thus - untestable as a unit, but it will be clear what the its' dependencies are and they will be type-hinted.
188188

189189
To provide dependencies to other classes after they are instantiated, in addition to using the mage.injectable tag and implementing __dependencies, you will have to override your class' constructor, for example:
190190
```php
191191
function __construct()
192192
{
193-
Mage::getSingleton(Inviqa_SymfonyContainer_Model_Observer::SERVICE_INJECTOR)->setupDepdendencies($this);
193+
Mage::getSingleton('inviqa_symfonyContainer/serviceInjector')->setupDepdendencies($this);
194194
parent::__construct();
195195
}
196196
```

0 commit comments

Comments
 (0)