modify plugin name

This commit is contained in:
2022-02-21 10:56:37 +08:00
parent 50b6d79756
commit 17316250a9
3 changed files with 11 additions and 16 deletions
+5 -8
View File
@@ -26,14 +26,11 @@ use Exception;
} }
/** /**
* @param static $params * @param mixed $class
* @param mixed $class * @param mixed|null $method
* @param mixed|null $method * @return bool
* @return bool */
* @throws \Kiri\Exception\NotFindClassException
* @throws \ReflectionException
*/
public function execute(mixed $class, mixed $method = null): bool public function execute(mixed $class, mixed $method = null): bool
{ {
di(Getter::class)->addGetter($this->name, $class, $method); di(Getter::class)->addGetter($this->name, $class, $method);
+5 -8
View File
@@ -21,14 +21,11 @@ use Exception;
} }
/** /**
* @param static $params * @param mixed $class
* @param mixed $class * @param mixed|null $method
* @param mixed|null $method * @return bool
* @return bool */
* @throws \Kiri\Exception\NotFindClassException
* @throws \ReflectionException
*/
public function execute(mixed $class, mixed $method = null): bool public function execute(mixed $class, mixed $method = null): bool
{ {
di(Setter::class)->addSetter($this->name, $class, $method); di(Setter::class)->addSetter($this->name, $class, $method);
+1
View File
@@ -15,6 +15,7 @@ class Getter
*/ */
public function addGetter($name, $class, $method) public function addGetter($name, $class, $method)
{ {
var_dump($name, $class);
$this->_classMapping[$class][$name] = $method; $this->_classMapping[$class][$name] = $method;
} }