From 7c871d175e02950e03e22cf858e04c94835cf6d8 Mon Sep 17 00:00:00 2001 From: George Steel Date: Wed, 10 Jun 2020 13:18:34 +0100 Subject: [PATCH] Use Prismic\LinkResolver as the service id for the shipped link resolver --- CHANGELOG.md | 22 ++++++++++++++++++++++ src/ConfigProvider.php | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2a87db..06d7a3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,28 @@ All notable changes to this project will be documented in this file, in reverse chronological order by release. +## 0.2.2 - 2020-06-10 + +### Added + +- Nothing. + +### Changed + +- Nothing. + +### Deprecated + +- Nothing. + +### Removed + +- Nothing. + +### Fixed + +- The default link resolver is now listed in the container using `Prismic\LinkResolver` which is what most consumers will want… + ## 0.2.1 - 2020-06-10 ### Added diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 01fdcfe..ecda266 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -60,13 +60,13 @@ private function dependencies() : array Middleware\PrismicTemplateHandler::class => Middleware\Container\PrismicTemplateHandlerFactory::class, Middleware\WebhookHandler::class => Middleware\Container\WebhookHandlerFactory::class, Prismic\ApiClient::class => Container\ApiFactory::class, + Prismic\LinkResolver::class => Container\LinkResolverFactory::class, Prismic\ResultSet\StandardResultSetFactory::class => Container\StandardResultSetFactoryFactory::class, ResultSet\HydratingResultSetFactory::class => ResultSet\Container\HydratingResultSetFactoryFactory::class, ResultSet\TypeMap::class => ResultSet\Container\TypeMapFactory::class, Router\DocumentResolver::class => Router\Container\DocumentResolverFactory::class, Router\RouteMatcher::class => Router\Container\RouteMatcherFactory::class, Router\RouteParams::class => Router\Container\RouteParamsFactory::class, - LinkResolver::class => Container\LinkResolverFactory::class, ], 'aliases' => [ Prismic\ResultSet\ResultSetFactory::class => Prismic\ResultSet\StandardResultSetFactory::class,