改名
This commit is contained in:
@@ -9,6 +9,7 @@ use ReflectionClass;
|
|||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use ReflectionMethod;
|
use ReflectionMethod;
|
||||||
use Snowflake\Abstracts\Component;
|
use Snowflake\Abstracts\Component;
|
||||||
|
use Snowflake\Exception\NotFindClassException;
|
||||||
use Snowflake\Exception\NotFindPropertyException;
|
use Snowflake\Exception\NotFindPropertyException;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
|
|
||||||
@@ -142,6 +143,7 @@ class Annotation extends Component
|
|||||||
*/
|
*/
|
||||||
private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object)
|
private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object)
|
||||||
{
|
{
|
||||||
|
var_dump($reflect->getName());
|
||||||
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
if ($method->class != $class) {
|
if ($method->class != $class) {
|
||||||
continue;
|
continue;
|
||||||
@@ -151,8 +153,6 @@ class Annotation extends Component
|
|||||||
if (empty($tmp)) {
|
if (empty($tmp)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($tmp);
|
|
||||||
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
|
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
|
||||||
}
|
}
|
||||||
$this->resolveProperty($reflect, $object);
|
$this->resolveProperty($reflect, $object);
|
||||||
@@ -198,6 +198,7 @@ class Annotation extends Component
|
|||||||
* @param string $class
|
* @param string $class
|
||||||
* @return ReflectionClass|null
|
* @return ReflectionClass|null
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
|
* @throws NotFindClassException
|
||||||
*/
|
*/
|
||||||
private function reflectClass(string $class): ?ReflectionClass
|
private function reflectClass(string $class): ?ReflectionClass
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user