变更
This commit is contained in:
+3
-1
@@ -4,8 +4,8 @@
|
||||
namespace Database\Annotation;
|
||||
|
||||
|
||||
use Database\Base\Setter;
|
||||
use Kiri\Annotation\AbstractAttribute;
|
||||
use Exception;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_METHOD)] class Set extends AbstractAttribute
|
||||
{
|
||||
@@ -27,6 +27,8 @@ use Exception;
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
$keys = \Kiri::getDi()->get(Setter::class);
|
||||
$keys->write($this->name, $class, $method);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user