Skip to content

Commit

Permalink
Mercure
Browse files Browse the repository at this point in the history
  • Loading branch information
laryjulien committed Nov 18, 2021
1 parent ae37006 commit 9a43f6b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/Resources/config/mercure.xml
Expand Up @@ -7,7 +7,7 @@
<services>
<!-- Event listener -->

<service id="api_platform.mercure.listener.response.add_link_header" class="ApiPlatform\Core\Mercure\EventListener\AddLinkHeaderListener">
<service id="api_platform.mercure.listener.response.add_link_header" class="ApiPlatform\Symfony\EventListener\AddLinkHeaderListener">
<argument type="service" id="api_platform.metadata.resource.metadata_collection_factory" />
<argument type="service" id="Symfony\Component\Mercure\Discovery" on-invalid="ignore"/>

Expand Down
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace ApiPlatform\Core\Mercure\EventListener;
namespace ApiPlatform\Symfony\EventListener;

use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
Expand Down
3 changes: 3 additions & 0 deletions src/deprecation.php
Expand Up @@ -363,6 +363,9 @@
ApiPlatform\Core\JsonSchema\SchemaFactory::class => ApiPlatform\JsonSchema\SchemaFactory::class,
ApiPlatform\Core\JsonSchema\TypeFactory::class => ApiPlatform\JsonSchema\TypeFactory::class,

// Mercure/EventListener => Symfony/EventListener
ApiPlatform\Core\Mercure\EventListener\AddLinkHeaderListener::class => ApiPlatform\Symfony\EventListener\AddLinkHeaderListener::class,

// OpenApi
ApiPlatform\Core\OpenApi\Model\Components::class => ApiPlatform\OpenApi\Model\Components::class,
ApiPlatform\Core\OpenApi\Model\Contact::class => ApiPlatform\OpenApi\Model\Contact::class,
Expand Down
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace ApiPlatform\Core\Tests\Mercure\EventListener;
namespace ApiPlatform\Tests\Symfony\EventListener;

use ApiPlatform\Core\Mercure\EventListener\AddLinkHeaderListener;
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
use ApiPlatform\Core\Tests\ProphecyTrait;
use ApiPlatform\Symfony\EventListener\AddLinkHeaderListener;
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Dummy;
use Fig\Link\GenericLinkProvider;
use Fig\Link\Link;
Expand Down

0 comments on commit 9a43f6b

Please sign in to comment.