Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chipslays committed Jul 3, 2024
1 parent c21916c commit 6cd4eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Alisa.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function components(array $components): static
$component->handle();
} else if (is_string($key) && is_array($value)) {
$component = new $key($this, $this->context);
$component->handle(...$value);
$component->register(...$value);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ public function __construct(protected Alisa $alisa, protected Context $context)
//
}

abstract public function handle();
abstract public function register();
}

0 comments on commit 6cd4eb5

Please sign in to comment.