改名
This commit is contained in:
@@ -164,7 +164,6 @@ class Annotation extends Component
|
||||
$object->{$value->getName()} = $annotation;
|
||||
} else {
|
||||
$name = 'set' . ucfirst($value->getName());
|
||||
var_dump($name);
|
||||
if (!method_exists($object, $name)) {
|
||||
throw new NotFindPropertyException('set property need method ' . $name);
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class Application extends BaseApplication
|
||||
public function start(Input $argv): bool|string
|
||||
{
|
||||
try {
|
||||
// $this->scan_system_annotation();
|
||||
$this->scan_system_annotation();
|
||||
|
||||
fire(Event::SERVER_BEFORE_START);
|
||||
|
||||
|
||||
@@ -171,6 +171,9 @@ class Container extends BaseObject
|
||||
private function resolveDependencies($class, $constrict = []): ?array
|
||||
{
|
||||
if (!isset($this->_reflection[$class])) {
|
||||
if (!class_exists($class)) {
|
||||
return null;
|
||||
}
|
||||
$reflection = new ReflectionClass($class);
|
||||
if (!$reflection->isInstantiable()) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user