Skip to content

Commit

Permalink
IBX-8290: Deprecated ibexa.rest.refresh_session route in favor of `…
Browse files Browse the repository at this point in the history
…ibexa.rest.check_session`
  • Loading branch information
konradoboza committed May 28, 2024
1 parent 5316c60 commit 41a8ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bundle/Resources/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ ibexa.rest.load_content_type_field_definition:
requirements:
contentTypeId: \d+
fieldDefinitionId: \d+

ibexa.rest.load_content_type_field_definition_by_identifier:
path: /content/types/{contentTypeId}/fieldDefinition/{fieldDefinitionIdentifier}
controller: Ibexa\Rest\Server\Controller\ContentType::loadContentTypeFieldDefinitionByIdentifier
Expand Down Expand Up @@ -1161,6 +1161,7 @@ ibexa.rest.delete_session:
methods: [DELETE]

ibexa.rest.refresh_session:
deprecated: 'Since ibexa/rest 4.6.7 ibexa.rest.refresh_session is deprecated, will be removed in 5.0. Use ibexa.rest.check_session instead'
path: /user/sessions/{sessionId}/refresh
defaults:
_controller: Ibexa\Rest\Server\Controller\SessionController:refreshSessionAction
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Server/Controller/SessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public function createSessionAction(Request $request)
/**
* Refresh given session.
*
* @deprecated 4.6.7 The "SessionController::refreshSessionAction()" method is deprecated, will be removed in 5.0. Use SessionController::checkSessionAction() instead.
*
* @param string $sessionId
*
* @throws \Ibexa\Contracts\Rest\Exceptions\NotFoundException
Expand Down

0 comments on commit 41a8ff0

Please sign in to comment.