This commit is contained in:
as2252258@163.com
2021-08-11 01:04:57 +08:00
parent 63d8eaa4a5
commit 682246df28
219 changed files with 790 additions and 791 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
<?php
namespace Snowflake\Di;
namespace Kiri\Di;
use Annotation\Inject;
use Snowflake\Abstracts\Component;
use Snowflake\Snowflake;
use Kiri\Abstracts\Component;
use Kiri\Kiri;
/**
@@ -45,7 +45,7 @@ class LocalService extends Component
if (is_object($definition) && !$definition instanceof \Closure) {
return $this->_components[$name] = $definition;
}
return $this->_components[$name] = Snowflake::createObject($definition);
return $this->_components[$name] = Kiri::createObject($definition);
} else if ($throwException) {
throw new \Exception("Unknown component ID: $name");
}