modify plugin name
This commit is contained in:
+5
-8
@@ -26,14 +26,11 @@ use Exception;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param static $params
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return bool
|
||||
* @throws \Kiri\Exception\NotFindClassException
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
/**
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return bool
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
di(Getter::class)->addGetter($this->name, $class, $method);
|
||||
|
||||
+5
-8
@@ -21,14 +21,11 @@ use Exception;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param static $params
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return bool
|
||||
* @throws \Kiri\Exception\NotFindClassException
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
/**
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return bool
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
di(Setter::class)->addSetter($this->name, $class, $method);
|
||||
|
||||
@@ -15,6 +15,7 @@ class Getter
|
||||
*/
|
||||
public function addGetter($name, $class, $method)
|
||||
{
|
||||
var_dump($name, $class);
|
||||
$this->_classMapping[$class][$name] = $method;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user