-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
CatchUpHookFactoryDependencies
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,27 @@ | |
|
||
namespace Neos\RedirectHandler\NeosAdapter\CatchUpHook; | ||
|
||
use Neos\ContentRepository\Core\Projection\CatchUpHookFactoryDependencies; | ||
use Neos\ContentRepository\Core\Projection\CatchUpHookFactoryInterface; | ||
use Neos\ContentRepository\Core\ContentRepository; | ||
use Neos\ContentRepository\Core\Projection\CatchUpHookInterface; | ||
use Neos\Neos\FrontendRouting\Projection\DocumentUriPathFinder; | ||
use Neos\RedirectHandler\NeosAdapter\Service\NodeRedirectService; | ||
use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry; | ||
|
||
/** | ||
* @implements CatchUpHookFactoryInterface<DocumentUriPathFinder> | ||
*/ | ||
final class DocumentUriPathProjectionHookFactory implements CatchUpHookFactoryInterface | ||
Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.2)
Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.3)
|
||
{ | ||
public function __construct( | ||
protected readonly NodeRedirectService $redirectService, | ||
protected readonly ContentRepositoryRegistry $contentRepositoryRegistry, | ||
) { | ||
} | ||
|
||
public function build(ContentRepository $contentRepository): CatchUpHookInterface | ||
public function build(CatchUpHookFactoryDependencies $dependencies): CatchUpHookInterface | ||
Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.2)
Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.2)
Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.3)
Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.3)
|
||
{ | ||
return new DocumentUriPathProjectionHook( | ||
$contentRepository, | ||
$dependencies->contentRepositoryId, | ||
Check failure on line 24 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.2)
|
||
$dependencies->projectionState, | ||
Check failure on line 25 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php GitHub Actions / build (8.2)
|
||
$this->redirectService | ||
); | ||
} | ||
|