File tree Expand file tree Collapse file tree 6 files changed +10
-11
lines changed Expand file tree Collapse file tree 6 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 15
15
"require" : {
16
16
"php" : " >=7.1" ,
17
17
"doctrine/inflector" : " ^1.0 || ^2.0" ,
18
- "fig/link-util" : " ^1.0" ,
19
18
"psr/cache" : " ^1.0 || ^2.0 || ^3.0" ,
20
19
"psr/container" : " ^1.0 || ^2.0" ,
21
20
"symfony/http-foundation" : " ^4.4 || ^5.1 || ^6.0" ,
Original file line number Diff line number Diff line change 16
16
use ApiPlatform \Api \UrlGeneratorInterface ;
17
17
use ApiPlatform \JsonLd \ContextBuilder ;
18
18
use ApiPlatform \Util \CorsTrait ;
19
- use Fig \Link \GenericLinkProvider ;
20
- use Fig \Link \Link ;
21
19
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
20
+ use Symfony \Component \WebLink \GenericLinkProvider ;
21
+ use Symfony \Component \WebLink \Link ;
22
22
23
23
/**
24
24
* Adds the HTTP Link header pointing to the Hydra documentation.
Original file line number Diff line number Diff line change 18
18
use ApiPlatform \Util \CorsTrait ;
19
19
use ApiPlatform \Util \OperationRequestInitiatorTrait ;
20
20
use ApiPlatform \Util \RequestAttributesExtractor ;
21
- use Fig \Link \GenericLinkProvider ;
22
- use Fig \Link \Link ;
23
21
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
24
22
use Symfony \Component \Mercure \Discovery ;
23
+ use Symfony \Component \WebLink \GenericLinkProvider ;
24
+ use Symfony \Component \WebLink \Link ;
25
25
26
26
/**
27
27
* Adds the HTTP Link header pointing to the Mercure hub for resources having their updates dispatched.
Original file line number Diff line number Diff line change 21
21
use ApiPlatform \Serializer \SerializerContextBuilderInterface ;
22
22
use ApiPlatform \Util \OperationRequestInitiatorTrait ;
23
23
use ApiPlatform \Util \RequestAttributesExtractor ;
24
- use Fig \Link \GenericLinkProvider ;
25
- use Fig \Link \Link ;
26
24
use Symfony \Component \HttpFoundation \Request ;
27
25
use Symfony \Component \HttpFoundation \Response ;
28
26
use Symfony \Component \HttpKernel \Event \ViewEvent ;
29
27
use Symfony \Component \Serializer \Encoder \EncoderInterface ;
30
28
use Symfony \Component \Serializer \Normalizer \AbstractObjectNormalizer ;
31
29
use Symfony \Component \Serializer \SerializerInterface ;
30
+ use Symfony \Component \WebLink \GenericLinkProvider ;
31
+ use Symfony \Component \WebLink \Link ;
32
32
33
33
/**
34
34
* Serializes data.
Original file line number Diff line number Diff line change 16
16
use ApiPlatform \Api \UrlGeneratorInterface ;
17
17
use ApiPlatform \Core \Tests \ProphecyTrait ;
18
18
use ApiPlatform \Hydra \EventListener \AddLinkHeaderListener ;
19
- use Fig \Link \GenericLinkProvider ;
20
- use Fig \Link \Link ;
21
19
use PHPUnit \Framework \TestCase ;
22
20
use Symfony \Component \HttpFoundation \Request ;
23
21
use Symfony \Component \HttpFoundation \Response ;
24
22
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
25
23
use Symfony \Component \HttpKernel \HttpKernelInterface ;
24
+ use Symfony \Component \WebLink \GenericLinkProvider ;
26
25
use Symfony \Component \WebLink \HttpHeaderSerializer ;
26
+ use Symfony \Component \WebLink \Link ;
27
27
28
28
/**
29
29
* @author Kévin Dunglas <[email protected] >
Original file line number Diff line number Diff line change 18
18
use ApiPlatform \Core \Tests \ProphecyTrait ;
19
19
use ApiPlatform \Symfony \EventListener \AddLinkHeaderListener ;
20
20
use ApiPlatform \Tests \Fixtures \TestBundle \Entity \Dummy ;
21
- use Fig \Link \GenericLinkProvider ;
22
- use Fig \Link \Link ;
23
21
use PHPUnit \Framework \TestCase ;
24
22
use Symfony \Component \HttpFoundation \Request ;
25
23
use Symfony \Component \HttpFoundation \Response ;
29
27
use Symfony \Component \Mercure \Hub ;
30
28
use Symfony \Component \Mercure \HubRegistry ;
31
29
use Symfony \Component \Mercure \Jwt \StaticTokenProvider ;
30
+ use Symfony \Component \WebLink \GenericLinkProvider ;
32
31
use Symfony \Component \WebLink \HttpHeaderSerializer ;
32
+ use Symfony \Component \WebLink \Link ;
33
33
34
34
/**
35
35
* @author Kévin Dunglas <[email protected] >
You can’t perform that action at this time.
0 commit comments