Skip to content

Commit

Permalink
feat: add save methods for user settings
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica González <[email protected]>
  • Loading branch information
MissAllSunday committed Oct 11, 2020
1 parent 99a70c2 commit 5a476cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public function main(): void
]);
}

public function save(): void
{
$this->userSettingsService->save(
$this->getRequest(UserSettingsEntity::IDENTIFIER));
}

public function render(string $subTemplate, array $params = [], string $smfTemplate = ''): void
{
$this->userSettingsService->defaultSubActionContent($subTemplate, $params, $smfTemplate);
Expand Down
5 changes: 5 additions & 0 deletions Sources/Breeze/Service/Actions/UserSettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public function init(array $subActions):void
$this->setTemplate(Breeze::NAME . self::TEMPLATE);
}

public function save(array $userSettings, int $userId)
{

}

public function getActionName(): string
{
return self::AREA;
Expand Down

0 comments on commit 5a476cf

Please sign in to comment.