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