Skip to content

Commit

Permalink
Merge pull request #1849 from hydephp/upgrade-realtime-compiler-for-m…
Browse files Browse the repository at this point in the history
…icroserve-2

Upgrade realtime compiler to use Microserve v2 hydephp/develop@3e1b668
  • Loading branch information
github-actions committed Jul 14, 2024
1 parent 1cecf6c commit c6ad2a3
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 25 deletions.
3 changes: 1 addition & 2 deletions bin/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

try {
$app = \Desilva\Microserve\Microserve::boot(\Hyde\RealtimeCompiler\Http\HttpKernel::class);
$response = $app->handle(); // Process the request and create the response
$response->send(); // Send the response to the client
$response = $app->handle();
} catch (Throwable $exception) {
\Hyde\RealtimeCompiler\Http\ExceptionHandler::handle($exception)->send();
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"bin": ["bin/server.php"],
"require": {
"desilva/microserve": "^1.0",
"desilva/microserve": "^2.0",
"hyde/framework": "*"
},
"suggest": {
Expand Down
1 change: 1 addition & 0 deletions src/Http/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Illuminate\Support\HtmlString;
use Hyde\Foundation\Facades\Routes;
use Desilva\Microserve\JsonResponse;
use Desilva\Microserve\HtmlResponse;
use Hyde\Support\Filesystem\MediaFile;
use Illuminate\Support\Facades\Process;
use Hyde\Framework\Actions\StaticPageBuilder;
Expand Down
20 changes: 0 additions & 20 deletions src/Http/HtmlResponse.php

This file was deleted.

1 change: 1 addition & 0 deletions src/Http/LiveEditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Hyde\Support\Models\Redirect;
use Hyde\Markdown\Models\Markdown;
use Desilva\Microserve\JsonResponse;
use Desilva\Microserve\HtmlResponse;
use Illuminate\Support\Facades\Blade;
use Hyde\Pages\Concerns\BaseMarkdownPage;
use Symfony\Component\HttpKernel\Exception\HttpException;
Expand Down
2 changes: 1 addition & 1 deletion src/Routing/PageRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Hyde\RealtimeCompiler\Concerns\InteractsWithLaravel;
use Hyde\RealtimeCompiler\Concerns\SendsErrorResponses;
use Hyde\RealtimeCompiler\Http\DashboardController;
use Hyde\RealtimeCompiler\Http\HtmlResponse;
use Desilva\Microserve\HtmlResponse;
use Hyde\Hyde;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/RealtimeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Hyde\Facades\Filesystem;
use Hyde\Framework\Exceptions\RouteNotFoundException;
use Hyde\RealtimeCompiler\Http\ExceptionHandler;
use Hyde\RealtimeCompiler\Http\HtmlResponse;
use Desilva\Microserve\HtmlResponse;
use Hyde\RealtimeCompiler\Http\HttpKernel;

class RealtimeCompilerTest extends UnitTestCase
Expand Down

0 comments on commit c6ad2a3

Please sign in to comment.