Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed typo depdency injector.

  • Loading branch information...
commit ac5de314f2837deed652a27caed8d9657b73296d 1 parent ba803df
= authored
View
2  RedBean/ModelHelper.php
@@ -88,7 +88,7 @@ public static function factory( $modelClassName ) {
*
* @param RedBean_DependencyInjector $di injecto to be used
*/
- public static function setDepdencyInjector( RedBean_DependencyInjector $di ) {
+ public static function setDependencyInjector( RedBean_DependencyInjector $di ) {
self::$dependencyInjector = $di;
}
View
4 testing/RedUNIT/Blackhole/DIContainer.php
@@ -38,7 +38,7 @@ public function run() {
//succesful scenario, one missing
$di = new RedBean_DependencyInjector;
$di->addDependency('Coffee',new Dependency_Coffee);
- RedBean_ModelHelper::setDepdencyInjector( $di );
+ RedBean_ModelHelper::setDependencyInjector( $di );
$geek = R::dispense('geek');
list($coffee,$cocoa) = $geek->getObjects();
asrt(($coffee instanceof Dependency_Coffee),true);
@@ -48,7 +48,7 @@ public function run() {
$di = new RedBean_DependencyInjector;
$di->addDependency('Coffee',new Dependency_Coffee);
$di->addDependency('Cocoa',new Dependency_Cocoa);
- RedBean_ModelHelper::setDepdencyInjector( $di );
+ RedBean_ModelHelper::setDependencyInjector( $di );
$geek = R::dispense('geek');
list($coffee,$cocoa) = $geek->getObjects();
asrt(($coffee instanceof Dependency_Coffee),true);
Please sign in to comment.
Something went wrong with that request. Please try again.