|
17 | 17 | use Prismic\Cloner\Factory\PathConfigFactory; |
18 | 18 | use Prismic\Cloner\Migration\DefaultTitleResolver; |
19 | 19 | use Prismic\Cloner\Migration\DocumentMigrationTracker; |
| 20 | +use Prismic\Cloner\Migration\DocumentMigrator; |
20 | 21 | use Prismic\Cloner\Migration\Factory\DocumentMigrationTrackerFactory; |
| 22 | +use Prismic\Cloner\Migration\Factory\DocumentMigratorFactory; |
| 23 | +use Prismic\Cloner\Migration\Factory\TitleResolverFactory; |
| 24 | +use Prismic\Cloner\Migration\ResolveSinglesToTypeLabel; |
21 | 25 | use Prismic\Cloner\Migration\TitleResolver; |
22 | 26 | use Prismic\Cloner\PathConfig; |
| 27 | +use Prismic\Cloner\Transformer\AdjustInternalLinks; |
| 28 | +use Prismic\Cloner\Transformer\FixAssetIdentifiers; |
| 29 | +use Prismic\Cloner\Transformer\PostTransform; |
| 30 | +use Prismic\Cloner\Transformer\PostTransformFactory; |
| 31 | +use Prismic\Cloner\Transformer\PreTransform; |
| 32 | +use Prismic\Cloner\Transformer\PreTransformFactory; |
23 | 33 |
|
24 | 34 | // phpcs:disable SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly |
25 | 35 |
|
26 | 36 | return [ |
27 | 37 | 'dependencies' => [ |
28 | 38 | 'factories' => [ |
| 39 | + // Utils, generic deps |
29 | 40 | CurlClient::class => InvokableFactory::class, |
30 | 41 | FinfoMimeTypeDetector::class => InvokableFactory::class, |
31 | | - CopyAsset::class => ReflectionBasedAbstractFactory::class, |
| 42 | + |
| 43 | + // Main tooling services |
32 | 44 | PathConfig::class => PathConfigFactory::class, |
| 45 | + CopyAsset::class => ReflectionBasedAbstractFactory::class, |
33 | 46 | AssetMapper::class => AssetMapperFactory::class, |
34 | 47 | CloneDocumentTypes::class => CloneDocumentTypesFactory::class, |
35 | 48 | DocumentTypes::class => DocumentTypesFactory::class, |
36 | 49 | DocumentMigrationTracker::class => DocumentMigrationTrackerFactory::class, |
| 50 | + DocumentMigrator::class => DocumentMigratorFactory::class, |
| 51 | + |
| 52 | + // Tools for figuring out the document title |
37 | 53 | DefaultTitleResolver::class => ReflectionBasedAbstractFactory::class, |
| 54 | + ResolveSinglesToTypeLabel::class => ReflectionBasedAbstractFactory::class, |
| 55 | + TitleResolver::class => TitleResolverFactory::class, |
| 56 | + |
| 57 | + // Tools for pre- and post-processing the documents |
| 58 | + FixAssetIdentifiers::class => ReflectionBasedAbstractFactory::class, |
| 59 | + AdjustInternalLinks::class => ReflectionBasedAbstractFactory::class, |
| 60 | + PreTransform::class => PreTransformFactory::class, |
| 61 | + PostTransform::class => PostTransformFactory::class, |
38 | 62 | ], |
39 | 63 | 'aliases' => [ |
40 | 64 | Psr\Http\Client\ClientInterface::class => CurlClient::class, |
41 | 65 | MimeTypeDetector::class => FinfoMimeTypeDetector::class, |
42 | | - TitleResolver::class => DefaultTitleResolver::class, |
43 | 66 | ], |
44 | 67 | ], |
45 | 68 | ]; |
0 commit comments