Skip to content

Commit 1b22a16

Browse files
committed
feat: remove symfony/http-foundation dependency
1 parent 50ed01f commit 1b22a16

File tree

5 files changed

+332
-261
lines changed

5 files changed

+332
-261
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ namespace Laravel\Http\Controllers;
160160

161161
use Application\DTO\MyDTO;
162162
use Illuminate\Http\Request;
163+
use WayOfDev\Serializer\HttpCode;
163164
use WayOfDev\Serializer\ResponseFactory;
164165

165166
class MyController extends Controller
@@ -176,7 +177,7 @@ class MyController extends Controller
176177
$dto = new MyDTO(1, 'John Doe', '[email protected]');
177178

178179
$this->response->withContext(['groups' => ['private']]);
179-
$this->response->withStatusCode(200);
180+
$this->response->withStatusCode(HttpCode::HTTP_OK);
180181

181182
return $this->response->create($dto);
182183
}

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"require": {
1818
"php": "^8.2",
1919
"doctrine/annotations": "^2.0",
20-
"symfony/http-foundation": "^6.3",
2120
"symfony/property-access": "^6.3",
2221
"symfony/serializer": "^6.3"
2322
},

0 commit comments

Comments
 (0)