Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Add offline mode support in the API #34151

Draft
wants to merge 24 commits into
base: 5.2-dev
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d2b7d88
Add offline mode support in the API
wilsonge May 23, 2021
efcedb3
Ensure API is not cached
wilsonge May 23, 2021
4ba043b
Fix year
wilsonge May 25, 2021
e25c35f
Fix year
wilsonge May 25, 2021
13ebabc
Remove my useless code
wilsonge May 25, 2021
8501b40
Fix handler
wilsonge May 25, 2021
9586572
Fix exception path
wilsonge May 29, 2021
dc9beb1
Update libraries/src/Error/JsonApi/OfflineWebsiteExceptionHandler.php
zero-24 May 30, 2021
e0727da
Merge branch '4.0-dev' into feature/offline-mode-api
zero-24 May 30, 2021
e1f17c8
remove InstallLanguageExceptionHandler
alikon Jun 4, 2021
487f726
Merge pull request #66 from alikon/patch-81
wilsonge Jun 4, 2021
c968a2d
Remove unused use
wilsonge Jun 4, 2021
12b9267
Update libraries/src/Error/JsonApi/OfflineWebsiteExceptionHandler.php
wilsonge Aug 19, 2021
dc95d45
Update libraries/src/Error/JsonApi/OfflineWebsiteExceptionHandler.php
wilsonge Aug 19, 2021
c17055e
Update libraries/src/Error/JsonApi/OfflineWebsiteExceptionHandler.php
wilsonge Aug 19, 2021
c8f755e
Update libraries/src/Application/ApiApplication.php
wilsonge Aug 19, 2021
fb97862
Merge branch '4.1-dev' into feature/offline-mode-api
chmst Jan 31, 2022
4c13992
Merge tag 'psr12anchor' into psr12/merge/34151
joomla-bot Jun 27, 2022
aeb1f9c
Phase 1 convert BRANCH to PSR-12
joomla-bot Jun 27, 2022
71ea1cd
Phase 2 convert BRANCH to PSR-12
joomla-bot Jun 27, 2022
5733d95
Merge tag 'psr12final' into psr12/merge/34151
joomla-bot Jun 27, 2022
0700bec
Merge branch '4.2-dev' into feature/offline-mode-api
laoneo Oct 21, 2022
d46dbf1
Merge branch '4.3-dev' into feature/offline-mode-api
laoneo Oct 21, 2022
f51a4b7
Merge branch '4.3-dev' into feature/offline-mode-api
laoneo Oct 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix handler
  • Loading branch information
wilsonge committed May 29, 2021
commit 8501b40783cb8ed9959f46d4e1f2d52c57dfa4a6
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
\defined('JPATH_PLATFORM') or die;

use Exception;
use Joomla\CMS\Router\Exception\RouteNotFoundException;
use Joomla\CMS\Router\Exception\OfflineWebsiteException;
use Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface;
use Tobscure\JsonApi\Exception\Handler\ResponseBag;

Expand All @@ -34,7 +34,7 @@ class OfflineWebsiteExceptionHandler implements ExceptionHandlerInterface
*/
public function manages(Exception $e)
{
return $e instanceof RouteNotFoundException;
return $e instanceof OfflineWebsiteException;
}

/**
Expand Down