This commit is contained in:
2023-03-30 20:39:00 +08:00
parent bfa39c3669
commit 5c9f92f955
6 changed files with 275 additions and 167 deletions
+3 -1
View File
@@ -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;
}