Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"require": {
"php": "^7.2|^8.0",
"symfony/http-foundation": "^4|^5|^6",
"symfony/http-kernel": "^4|^5|^6"
"symfony/http-kernel": "^4|^5|^6",
"fruitcake/php-cors": "^1"
},
"require-dev": {
"phpunit/phpunit": "^7|^9",
Expand All @@ -37,7 +38,9 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.1-dev"
"dev-master": "3.0-dev"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
3 changes: 2 additions & 1 deletion src/Cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Asm89\Stack;

use Fruitcake\Cors\CorsService;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -23,7 +24,7 @@ class Cors implements HttpKernelInterface
private $app;

/**
* @var \Asm89\Stack\CorsService
* @var \Fruitcake\Cors\CorsService
*/
private $cors;

Expand Down
225 changes: 0 additions & 225 deletions src/CorsService.php

This file was deleted.

50 changes: 0 additions & 50 deletions tests/CorsServiceTest.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/CorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Asm89\Stack\Tests;

use Asm89\Stack\Cors;
use Asm89\Stack\CorsService;
use Fruitcake\Cors\CorsService;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down