@@ -149,12 +149,12 @@ service, including controllers::
149
149
namespace App\Controller;
150
150
151
151
use Symfony\Component\HttpFoundation\Response;
152
- use Symfony\Component\Mercure\Publisher ;
152
+ use Symfony\Component\Mercure\PublisherInterface ;
153
153
use Symfony\Component\Mercure\Update;
154
154
155
155
class PublishController
156
156
{
157
- public function __invoke(Publisher $publisher): Response
157
+ public function __invoke(PublisherInterface $publisher): Response
158
158
{
159
159
$update = new Update(
160
160
'http://example.com/books/1',
@@ -286,7 +286,7 @@ by using the ``AbstractController::addLink`` helper method::
286
286
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
287
287
use Symfony\Component\HttpFoundation\JsonResponse;
288
288
use Symfony\Component\HttpFoundation\Request;
289
- use Symfony\Component\WebLink\LInk ;
289
+ use Symfony\Component\WebLink\Link ;
290
290
291
291
class DiscoverController extends AbstractController
292
292
{
@@ -336,12 +336,12 @@ as the third parameter of the ``Update`` constructor::
336
336
namespace App\Controller;
337
337
338
338
use Symfony\Component\HttpFoundation\Response;
339
- use Symfony\Component\Mercure\Publisher ;
339
+ use Symfony\Component\Mercure\PublisherInterface ;
340
340
use Symfony\Component\Mercure\Update;
341
341
342
342
class PublishController
343
343
{
344
- public function __invoke(Publisher $publisher): Response
344
+ public function __invoke(PublisherInterface $publisher): Response
345
345
{
346
346
$update = new Update(
347
347
'http://example.com/books/1',
0 commit comments