diff --git a/CHANGELOG.md b/CHANGELOG.md index f33ac4b..2f23038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,16 +5,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Version 3.0.0 + +To upgrade to the 3.0.0 version : + +* Remove the old bundle declaration from `config/bundles.php` (e.g. `Kaliop\IbexaMigrationBundle\IbexaMigrationBundle::class => ['all' => true]`). +* Update the bundle with composer : `composer require mrk-te/ibexa-migration-bundle2:^3.0`. +* Ensure the bundle is declared with his new name in `config/bundles.php` (e.g. `Kaliop\IbexaMigrationBundle\KaliopMigrationBundle::class => ['all' => true]`). +* Optionnally, rename the `src/MigrationsDefinitions` folder to `src/KaliopMigrations`. + +### Changed + +* Rename `IbexaMigrationBundle` to `KaliopMigrationBundle` to avoid conflicts with official ibexa/migrations (#8). +* Rename all elements prefixed with `ibexa_migration*` to `kaliop_migration*` to avoid ambiguity (#8). +* Rename `MigrationsDefinitions` to `KaliopMigrations` to avoid ambiguity (#8). + ## Version 2.1.0 ### Changed -* #6 - Update WHATSNEW to CHANGELOG following the "Keep a Changelog" format +* Update WHATSNEW to CHANGELOG following the "Keep a Changelog" format (#6). ### Fixed -* #1 - Fix image, binary files and media field types file input property name -* #4 - Content type descriptions are not nullable. Ensure descriptions are always strings on fields too. +* Fix image, binary files and media field types file input property name (#1). +* Content type descriptions are not nullable. Ensure descriptions are always strings on fields too (#4). ## Version 2.0.0 diff --git a/Command/GenerateCommand.php b/Command/GenerateCommand.php index 15a7896..c280d2c 100644 --- a/Command/GenerateCommand.php +++ b/Command/GenerateCommand.php @@ -350,7 +350,7 @@ protected function listAvailableTypes(OutputInterface $output) protected function getMigrationDirectory($bundleName) { if (!$bundleName) { - return $this->getApplication()->getKernel()->getProjectDir() . '/src/' . $this->configResolver->getParameter('ibexa_migration_bundle.version_directory'); + return $this->getApplication()->getKernel()->getProjectDir() . '/src/' . $this->configResolver->getParameter('kaliop_migration_bundle.version_directory'); } // Allow direct usage of a directory path instead of a bundle name @@ -368,7 +368,7 @@ protected function getMigrationDirectory($bundleName) } $bundle = $this->getApplication()->getKernel()->getBundle($bundleName); - $migrationDirectory = $bundle->getPath() . '/' . $this->configResolver->getParameter('ibexa_migration_bundle.version_directory'); + $migrationDirectory = $bundle->getPath() . '/' . $this->configResolver->getParameter('kaliop_migration_bundle.version_directory'); return $migrationDirectory; } diff --git a/DependencyInjection/CompilerPass/TaggedServicesCompilerPass.php b/DependencyInjection/CompilerPass/TaggedServicesCompilerPass.php index 99cecae..aa61af8 100644 --- a/DependencyInjection/CompilerPass/TaggedServicesCompilerPass.php +++ b/DependencyInjection/CompilerPass/TaggedServicesCompilerPass.php @@ -13,17 +13,17 @@ class TaggedServicesCompilerPass implements CompilerPassInterface */ public function process(ContainerBuilder $container) { - if ($container->has('ibexa_migration_bundle.migration_service')) { - $migrationService = $container->findDefinition('ibexa_migration_bundle.migration_service'); + if ($container->has('kaliop_migration_bundle.migration_service')) { + $migrationService = $container->findDefinition('kaliop_migration_bundle.migration_service'); - $DefinitionParsers = $container->findTaggedServiceIds('ibexa_migration_bundle.definition_parser'); + $DefinitionParsers = $container->findTaggedServiceIds('kaliop_migration_bundle.definition_parser'); foreach ($DefinitionParsers as $id => $tags) { $migrationService->addMethodCall('addDefinitionParser', array( new Reference($id) )); } - $executors = $container->findTaggedServiceIds('ibexa_migration_bundle.executor'); + $executors = $container->findTaggedServiceIds('kaliop_migration_bundle.executor'); foreach ($executors as $id => $tags) { $migrationService->addMethodCall('addExecutor', array( new Reference($id) @@ -31,10 +31,10 @@ public function process(ContainerBuilder $container) } } - if ($container->has('ibexa_migration_bundle.complex_field_manager')) { - $migrationService = $container->findDefinition('ibexa_migration_bundle.complex_field_manager'); + if ($container->has('kaliop_migration_bundle.complex_field_manager')) { + $migrationService = $container->findDefinition('kaliop_migration_bundle.complex_field_manager'); - $DefinitionParsers = $container->findTaggedServiceIds('ibexa_migration_bundle.complex_field'); + $DefinitionParsers = $container->findTaggedServiceIds('kaliop_migration_bundle.complex_field'); // allow for prioritization of tagged services $handlers = array(); @@ -58,9 +58,9 @@ public function process(ContainerBuilder $container) } } - if ($container->has('ibexa_migration_bundle.reference_resolver.customreference.flexible')) { - $customReferenceResolver = $container->findDefinition('ibexa_migration_bundle.reference_resolver.customreference.flexible'); - $extraResolvers = $container->findTaggedServiceIds('ibexa_migration_bundle.reference_resolver.customreference'); + if ($container->has('kaliop_migration_bundle.reference_resolver.customreference.flexible')) { + $customReferenceResolver = $container->findDefinition('kaliop_migration_bundle.reference_resolver.customreference.flexible'); + $extraResolvers = $container->findTaggedServiceIds('kaliop_migration_bundle.reference_resolver.customreference'); foreach ($extraResolvers as $id => $tags) { $customReferenceResolver->addMethodCall('addResolver', array( @@ -69,9 +69,9 @@ public function process(ContainerBuilder $container) } } - if ($container->has('ibexa_migration_bundle.context_handler')) { - $contextHandlerService = $container->findDefinition('ibexa_migration_bundle.context_handler'); - $ContextProviders = $container->findTaggedServiceIds('ibexa_migration_bundle.context_provider'); + if ($container->has('kaliop_migration_bundle.context_handler')) { + $contextHandlerService = $container->findDefinition('kaliop_migration_bundle.context_handler'); + $ContextProviders = $container->findTaggedServiceIds('kaliop_migration_bundle.context_provider'); foreach ($ContextProviders as $id => $tags) { foreach ($tags as $attributes) { diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 4ce0c32..c75d9c7 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -17,7 +17,7 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder(): TreeBuilder { - $treeBuilder = new TreeBuilder('ibexa_migration_bundle', 'array'); + $treeBuilder = new TreeBuilder('kaliop_migration_bundle', 'array'); $rootNode = $treeBuilder->getRootNode(); // Here you should define the parameters that are allowed to diff --git a/DependencyInjection/IbexaMigrationExtension.php b/DependencyInjection/KaliopMigrationExtension.php similarity index 95% rename from DependencyInjection/IbexaMigrationExtension.php rename to DependencyInjection/KaliopMigrationExtension.php index 360080e..cff1782 100644 --- a/DependencyInjection/IbexaMigrationExtension.php +++ b/DependencyInjection/KaliopMigrationExtension.php @@ -12,7 +12,7 @@ * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} */ -class IbexaMigrationExtension extends Extension +class KaliopMigrationExtension extends Extension { public static $loadTestConfig = false; diff --git a/IbexaMigrationBundle.php b/KaliopMigrationBundle.php similarity index 90% rename from IbexaMigrationBundle.php rename to KaliopMigrationBundle.php index 4f8b706..a790c77 100644 --- a/IbexaMigrationBundle.php +++ b/KaliopMigrationBundle.php @@ -6,7 +6,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; -class IbexaMigrationBundle extends Bundle +class KaliopMigrationBundle extends Bundle { public function build(ContainerBuilder $container) { diff --git a/MigrationsDefinitions/20220101000200_FixExecutedMigrationsPaths.php b/KaliopMigrations/20220101000200_FixExecutedMigrationsPaths.php similarity index 96% rename from MigrationsDefinitions/20220101000200_FixExecutedMigrationsPaths.php rename to KaliopMigrations/20220101000200_FixExecutedMigrationsPaths.php index 31120e5..1d18705 100644 --- a/MigrationsDefinitions/20220101000200_FixExecutedMigrationsPaths.php +++ b/KaliopMigrations/20220101000200_FixExecutedMigrationsPaths.php @@ -30,12 +30,12 @@ private function __construct(ContainerInterface $container) private function goForIt() { - $this->migrationsTableName = $this->container->getParameter('ibexa_migration_bundle.table_name'); + $this->migrationsTableName = $this->container->getParameter('kaliop_migration_bundle.table_name'); $this->connection = $this->container->get('ibexa.persistence.connection'); /** @var \Kaliop\IbexaMigrationBundle\Core\Helper\ConsoleIO $io */ - $io = $this->container->get('ibexa_migration_bundle.helper.console_io'); + $io = $this->container->get('kaliop_migration_bundle.helper.console_io'); // NB: in theory this could be null! $output = $io->getOutput(); diff --git a/README.md b/README.md index c16306b..6594de3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ Ibexa-Migration-Bundle for Ibexa 5 This is an upgrade of [tanoconsulting/ibexa-migration-bundle](https://github.com/tanoconsulting/ibexa-migration-bundle for Ibexa 5. -Version `^2.0` adds support for Ibexa 5. +Version `^3.0` adds support for Ibexa 5. + +Version '^2.0' was dropped as it conflict with official Ibexa/Migrations. Version `1.0.6` includes the support of the `ezimageasset` field type for Ibexa 4. @@ -31,7 +33,7 @@ Following versions are available: Run : - composer require 'mrk-te/ibexa-migration-bundle2:^2.0' + composer require 'mrk-te/ibexa-migration-bundle2:^3.0' This will install the bundle and all its dependencies. @@ -90,7 +92,7 @@ status command in your eZPlatform root directory: The list of migrations which have been already applied is stored in the database, in a table named `kaliop_migrations`. The bundle will automatically create the table if needed. -In case you need to use a different name for that table, you can change the Symfony parameter `ibexa_migration_bundle.table_name`. +In case you need to use a different name for that table, you can change the Symfony parameter `kaliop_migration_bundle.table_name`. ### Applying migrations @@ -172,7 +174,7 @@ Example command to generate an SQL migration definition: This will create the following file, which you are free to edit: - ./src/MigrationsDefinitions/2021XXYYHHMMSS_mysql_create-new-table.sql + ./src/KaliopMigrations/2021XXYYHHMMSS_mysql_create-new-table.sql *NB* if you rename the sql file, keep in mind that the type of database to which it is supposed to apply is the part of the filename between the first and second underscore characters. @@ -198,7 +200,7 @@ migration definition. To generate a PHP migration definition, execute: This will create the following file, which you are free to edit: - ./src/MigrationsDefinitions/2021XXYYHHMMSS_AMigrationClass.php + ./src/KaliopMigrations/2021XXYYHHMMSS_AMigrationClass.php As you can see in the generated definition, the php class to be used for a migration needs to implement a specific interface. The Symfony DIC container is passed to the migration class so that it can access from it all the services, @@ -303,7 +305,7 @@ Event Subscribers are supported as an alternative to Event Listeners, as is stan - and/or configuring Solr to always commit changes to the index immediately (eg. disable `commitwithin`) * when using SOLR in multi-core configurations and getting a `java.lang.NegativeArraySizeException` error, you will have - to set a lower value than the default 2147483647 for parameter `ibexa_migration_bundle.query_limit` + to set a lower value than the default 2147483647 for parameter `kaliop_migration_bundle.query_limit` * if you get fatal errors without any error message when running a migration which involves a lot of content changes, such as f.e. altering a contentType with many contents, it might be that you are running out of memory for your diff --git a/Resources/config/services.yml b/Resources/config/services.yml index ecbf2f2..10443df 100644 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -1,21 +1,21 @@ parameters: # Set to false to disable completely the debug output of executed migration steps in verbose mode - ibexa_migration_bundle.enable_debug_output: true + kaliop_migration_bundle.enable_debug_output: true # The directory (inside each bundle, and in src/) where to look for migrations definitions # NB: supports per-siteaccess configuration as an override of global configuration. For that, just define parameters: - # ibexa_migration_bundle..version_directory - ibexa_migration_bundle.version_directory: 'MigrationsDefinitions' + # kaliop_migration_bundle..version_directory + kaliop_migration_bundle.version_directory: 'KaliopMigrations' # The database tables used to store migration information. Will be created automatically # NB: supports per-siteaccess configuration as an override of global configuration. For that, just define parameters: - # ibexa_migration_bundle..table_name - ibexa_migration_bundle.table_name: 'kaliop_migrations' + # kaliop_migration_bundle..table_name + kaliop_migration_bundle.table_name: 'kaliop_migrations' # NB: supports per-siteaccess configuration as an override of global configuration. For that, just define parameters: - # ibexa_migration_bundle..context_table_name - ibexa_migration_bundle.context_table_name: 'kaliop_migrations_contexts' + # kaliop_migration_bundle..context_table_name + kaliop_migration_bundle.context_table_name: 'kaliop_migrations_contexts' # Used to discriminate valid migration definitions (for SQL migrations) - ibexa_migration_bundle.valid_databases: + kaliop_migration_bundle.valid_databases: # names have to correspond to doctrine 'platform', short of version numbers and lowercase # NB: this does NOT mean that eZPublish supports all of them :-) By default it supports only mysql and postgresql... - 'mysql' @@ -31,126 +31,126 @@ parameters: # It is a good idea to set it to the same character set used by eZP tables, even though at the moment there are no # queries doing joins between migration tables and eZP tables. # eZPlatform uses utf8mb4 charset as default - ibexa_migration_bundle.database_charset: 'utf8mb4' - ibexa_migration_bundle.database_collation: 'utf8mb4_general_ci' + kaliop_migration_bundle.database_charset: 'utf8mb4' + kaliop_migration_bundle.database_collation: 'utf8mb4_general_ci' # This is by default the max value for a 16-bit integer, which is what SOLR accepts as maximum nuber-of-results # limitation for its queries. # However, in multi-core configurations, you have to divide this most likely by the number of cores, or you will get # an 'java.lang.NegativeArraySizeException' error - ibexa_migration_bundle.query_limit: 2147483647 - - ibexa_migration_bundle.migration_service.class: Kaliop\IbexaMigrationBundle\Core\MigrationService - - ibexa_migration_bundle.loader.filesystem.class: Kaliop\IbexaMigrationBundle\Core\Loader\Filesystem - ibexa_migration_bundle.loader.filesystem_recursive.class: Kaliop\IbexaMigrationBundle\Core\Loader\FilesystemRecursive - - ibexa_migration_bundle.definition_parser.yaml.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\YamlDefinitionParser - ibexa_migration_bundle.definition_parser.json.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\JsonDefinitionParser - ibexa_migration_bundle.definition_parser.sql.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\SQLDefinitionParser - ibexa_migration_bundle.definition_parser.php.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\PHPDefinitionParser - - ibexa_migration_bundle.context_handler.class: Kaliop\IbexaMigrationBundle\Core\ContextHandler - - ibexa_migration_bundle.storage_handler.database.class: Kaliop\IbexaMigrationBundle\Core\StorageHandler\Database\Migration - ibexa_migration_bundle.context_storage_handler.database.class: Kaliop\IbexaMigrationBundle\Core\StorageHandler\Database\Context - - ibexa_migration_bundle.executor.file.class: Kaliop\IbexaMigrationBundle\Core\Executor\FileExecutor - ibexa_migration_bundle.executor.http.class: Kaliop\IbexaMigrationBundle\Core\Executor\HTTPExecutor - ibexa_migration_bundle.executor.loop.class: Kaliop\IbexaMigrationBundle\Core\Executor\LoopExecutor - ibexa_migration_bundle.executor.migration.class: Kaliop\IbexaMigrationBundle\Core\Executor\MigrationExecutor - ibexa_migration_bundle.executor.migration_definition.class: Kaliop\IbexaMigrationBundle\Core\Executor\MigrationDefinitionExecutor - ibexa_migration_bundle.executor.php.class: Kaliop\IbexaMigrationBundle\Core\Executor\PHPExecutor - ibexa_migration_bundle.executor.process.class: Kaliop\IbexaMigrationBundle\Core\Executor\ProcessExecutor - ibexa_migration_bundle.executor.service.class: Kaliop\IbexaMigrationBundle\Core\Executor\ServiceExecutor - ibexa_migration_bundle.executor.sql.class: Kaliop\IbexaMigrationBundle\Core\Executor\SQLExecutor - ibexa_migration_bundle.executor.reference.class: Kaliop\IbexaMigrationBundle\Core\Executor\ReferenceExecutor - ibexa_migration_bundle.executor.repository.class: Kaliop\IbexaMigrationBundle\Core\Executor\RepositoryExecutor - - ibexa_migration_bundle.executor.content_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentManager - ibexa_migration_bundle.executor.content_version_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentVersionManager - ibexa_migration_bundle.executor.content_type_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentTypeManager - ibexa_migration_bundle.executor.content_type_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentTypeGroupManager - ibexa_migration_bundle.executor.language_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\LanguageManager - ibexa_migration_bundle.executor.location_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\LocationManager - ibexa_migration_bundle.executor.object_state_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ObjectStateManager - ibexa_migration_bundle.executor.object_state_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ObjectStateGroupManager - ibexa_migration_bundle.executor.role_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\RoleManager - ibexa_migration_bundle.executor.section_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\SectionManager - ibexa_migration_bundle.executor.tag_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\TagManager - ibexa_migration_bundle.executor.trash_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\TrashManager - ibexa_migration_bundle.executor.user_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\UserManager - ibexa_migration_bundle.executor.url_alias.class: Kaliop\IbexaMigrationBundle\Core\Executor\UrlAliasManager - ibexa_migration_bundle.executor.url_wildcard.class: Kaliop\IbexaMigrationBundle\Core\Executor\UrlWildcardManager - ibexa_migration_bundle.executor.user_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\UserGroupManager - - ibexa_migration_bundle.content_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentMatcherDirectLoad - ibexa_migration_bundle.content_type_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentTypeMatcher - ibexa_migration_bundle.content_type_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentTypeGroupMatcher - ibexa_migration_bundle.content_version_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentVersionMatcher - ibexa_migration_bundle.language_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\LanguageMatcher - ibexa_migration_bundle.location_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\LocationMatcherDirectLoad - ibexa_migration_bundle.object_state_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ObjectStateMatcher - ibexa_migration_bundle.object_state_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ObjectStateGroupMatcher - ibexa_migration_bundle.reference_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ReferenceMatcher - ibexa_migration_bundle.role_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\RoleMatcher - ibexa_migration_bundle.section_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\SectionMatcher - ibexa_migration_bundle.tag_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\TagMatcher - ibexa_migration_bundle.trash_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\TrashMatcher - ibexa_migration_bundle.url_alias_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UrlAliasMatcher - ibexa_migration_bundle.url_wildcard_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UrlWildcardMatcher - ibexa_migration_bundle.user_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UserMatcher - ibexa_migration_bundle.user_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UserGroupMatcher - - ibexa_migration_bundle.complex_field_manager.class: Kaliop\IbexaMigrationBundle\Core\FieldHandlerManager - ibexa_migration_bundle.complex_field.ibexa_author.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaAuthor - ibexa_migration_bundle.complex_field.ibexa_binaryfile.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaBinaryFile - ibexa_migration_bundle.complex_field.ibexa_boolean.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaBoolean - ibexa_migration_bundle.complex_field.country.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaCountry - ibexa_migration_bundle.complex_field.ibexa_date.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaDate - ibexa_migration_bundle.complex_field.ibexa_datetime.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaDateAndTime - ibexa_migration_bundle.complex_field.ibexa_image.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaImage - ibexa_migration_bundle.complex_field.ibexa_matrix.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaMatrix - ibexa_migration_bundle.complex_field.ibexa_media.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaMedia - #ibexa_migration_bundle.complex_field.ezpage.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\EzPage - ibexa_migration_bundle.complex_field.ezrelation.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRelation - ibexa_migration_bundle.complex_field.ezrelationlist.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRelationList - ibexa_migration_bundle.complex_field.ibexa_richtext.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRichText - ibexa_migration_bundle.complex_field.ibexa_selection.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaSelection - ibexa_migration_bundle.complex_field.ibexa_image_asset.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaImageAsset - ibexa_migration_bundle.complex_field.ezxmltext.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaXmlText - ibexa_migration_bundle.complex_field.eztags.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaTags - - ibexa_migration_bundle.reference_resolver.chain.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ChainResolver - ibexa_migration_bundle.reference_resolver.chain_prefix.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ChainPrefixResolver - ibexa_migration_bundle.reference_resolver.customreference.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\CustomReferenceResolver - ibexa_migration_bundle.reference_resolver.content.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ContentResolver - ibexa_migration_bundle.reference_resolver.expression.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ExpressionResolver - ibexa_migration_bundle.reference_resolver.location.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\LocationResolver - ibexa_migration_bundle.reference_resolver.loop.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\LoopResolver - ibexa_migration_bundle.reference_resolver.tag.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\TagResolver - - ibexa_migration_bundle.helper.limitation_converter.class: Kaliop\IbexaMigrationBundle\Core\Helper\LimitationConverter - ibexa_migration_bundle.helper.sort_converter.class: Kaliop\IbexaMigrationBundle\Core\Helper\SortConverter - ibexa_migration_bundle.helper.console_io.class: Kaliop\IbexaMigrationBundle\Core\Helper\ConsoleIO - ibexa_migration_bundle.helper.config.resolver: Kaliop\IbexaMigrationBundle\Core\Helper\ConfigResolver - - ibexa_migration_bundle.step_executed_listener.tracing.class: Kaliop\IbexaMigrationBundle\Core\EventListener\TracingStepExecutedListener + kaliop_migration_bundle.query_limit: 2147483647 + + kaliop_migration_bundle.migration_service.class: Kaliop\IbexaMigrationBundle\Core\MigrationService + + kaliop_migration_bundle.loader.filesystem.class: Kaliop\IbexaMigrationBundle\Core\Loader\Filesystem + kaliop_migration_bundle.loader.filesystem_recursive.class: Kaliop\IbexaMigrationBundle\Core\Loader\FilesystemRecursive + + kaliop_migration_bundle.definition_parser.yaml.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\YamlDefinitionParser + kaliop_migration_bundle.definition_parser.json.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\JsonDefinitionParser + kaliop_migration_bundle.definition_parser.sql.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\SQLDefinitionParser + kaliop_migration_bundle.definition_parser.php.class: Kaliop\IbexaMigrationBundle\Core\DefinitionParser\PHPDefinitionParser + + kaliop_migration_bundle.context_handler.class: Kaliop\IbexaMigrationBundle\Core\ContextHandler + + kaliop_migration_bundle.storage_handler.database.class: Kaliop\IbexaMigrationBundle\Core\StorageHandler\Database\Migration + kaliop_migration_bundle.context_storage_handler.database.class: Kaliop\IbexaMigrationBundle\Core\StorageHandler\Database\Context + + kaliop_migration_bundle.executor.file.class: Kaliop\IbexaMigrationBundle\Core\Executor\FileExecutor + kaliop_migration_bundle.executor.http.class: Kaliop\IbexaMigrationBundle\Core\Executor\HTTPExecutor + kaliop_migration_bundle.executor.loop.class: Kaliop\IbexaMigrationBundle\Core\Executor\LoopExecutor + kaliop_migration_bundle.executor.migration.class: Kaliop\IbexaMigrationBundle\Core\Executor\MigrationExecutor + kaliop_migration_bundle.executor.migration_definition.class: Kaliop\IbexaMigrationBundle\Core\Executor\MigrationDefinitionExecutor + kaliop_migration_bundle.executor.php.class: Kaliop\IbexaMigrationBundle\Core\Executor\PHPExecutor + kaliop_migration_bundle.executor.process.class: Kaliop\IbexaMigrationBundle\Core\Executor\ProcessExecutor + kaliop_migration_bundle.executor.service.class: Kaliop\IbexaMigrationBundle\Core\Executor\ServiceExecutor + kaliop_migration_bundle.executor.sql.class: Kaliop\IbexaMigrationBundle\Core\Executor\SQLExecutor + kaliop_migration_bundle.executor.reference.class: Kaliop\IbexaMigrationBundle\Core\Executor\ReferenceExecutor + kaliop_migration_bundle.executor.repository.class: Kaliop\IbexaMigrationBundle\Core\Executor\RepositoryExecutor + + kaliop_migration_bundle.executor.content_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentManager + kaliop_migration_bundle.executor.content_version_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentVersionManager + kaliop_migration_bundle.executor.content_type_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentTypeManager + kaliop_migration_bundle.executor.content_type_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ContentTypeGroupManager + kaliop_migration_bundle.executor.language_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\LanguageManager + kaliop_migration_bundle.executor.location_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\LocationManager + kaliop_migration_bundle.executor.object_state_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ObjectStateManager + kaliop_migration_bundle.executor.object_state_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\ObjectStateGroupManager + kaliop_migration_bundle.executor.role_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\RoleManager + kaliop_migration_bundle.executor.section_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\SectionManager + kaliop_migration_bundle.executor.tag_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\TagManager + kaliop_migration_bundle.executor.trash_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\TrashManager + kaliop_migration_bundle.executor.user_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\UserManager + kaliop_migration_bundle.executor.url_alias.class: Kaliop\IbexaMigrationBundle\Core\Executor\UrlAliasManager + kaliop_migration_bundle.executor.url_wildcard.class: Kaliop\IbexaMigrationBundle\Core\Executor\UrlWildcardManager + kaliop_migration_bundle.executor.user_group_manager.class: Kaliop\IbexaMigrationBundle\Core\Executor\UserGroupManager + + kaliop_migration_bundle.content_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentMatcherDirectLoad + kaliop_migration_bundle.content_type_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentTypeMatcher + kaliop_migration_bundle.content_type_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentTypeGroupMatcher + kaliop_migration_bundle.content_version_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ContentVersionMatcher + kaliop_migration_bundle.language_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\LanguageMatcher + kaliop_migration_bundle.location_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\LocationMatcherDirectLoad + kaliop_migration_bundle.object_state_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ObjectStateMatcher + kaliop_migration_bundle.object_state_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ObjectStateGroupMatcher + kaliop_migration_bundle.reference_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\ReferenceMatcher + kaliop_migration_bundle.role_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\RoleMatcher + kaliop_migration_bundle.section_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\SectionMatcher + kaliop_migration_bundle.tag_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\TagMatcher + kaliop_migration_bundle.trash_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\TrashMatcher + kaliop_migration_bundle.url_alias_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UrlAliasMatcher + kaliop_migration_bundle.url_wildcard_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UrlWildcardMatcher + kaliop_migration_bundle.user_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UserMatcher + kaliop_migration_bundle.user_group_matcher.class: Kaliop\IbexaMigrationBundle\Core\Matcher\UserGroupMatcher + + kaliop_migration_bundle.complex_field_manager.class: Kaliop\IbexaMigrationBundle\Core\FieldHandlerManager + kaliop_migration_bundle.complex_field.ibexa_author.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaAuthor + kaliop_migration_bundle.complex_field.ibexa_binaryfile.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaBinaryFile + kaliop_migration_bundle.complex_field.ibexa_boolean.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaBoolean + kaliop_migration_bundle.complex_field.country.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaCountry + kaliop_migration_bundle.complex_field.ibexa_date.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaDate + kaliop_migration_bundle.complex_field.ibexa_datetime.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaDateAndTime + kaliop_migration_bundle.complex_field.ibexa_image.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaImage + kaliop_migration_bundle.complex_field.ibexa_matrix.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaMatrix + kaliop_migration_bundle.complex_field.ibexa_media.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaMedia + #kaliop_migration_bundle.complex_field.ezpage.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\EzPage + kaliop_migration_bundle.complex_field.ezrelation.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRelation + kaliop_migration_bundle.complex_field.ezrelationlist.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRelationList + kaliop_migration_bundle.complex_field.ibexa_richtext.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaRichText + kaliop_migration_bundle.complex_field.ibexa_selection.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaSelection + kaliop_migration_bundle.complex_field.ibexa_image_asset.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaImageAsset + kaliop_migration_bundle.complex_field.ezxmltext.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaXmlText + kaliop_migration_bundle.complex_field.eztags.class: Kaliop\IbexaMigrationBundle\Core\FieldHandler\IbexaTags + + kaliop_migration_bundle.reference_resolver.chain.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ChainResolver + kaliop_migration_bundle.reference_resolver.chain_prefix.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ChainPrefixResolver + kaliop_migration_bundle.reference_resolver.customreference.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\CustomReferenceResolver + kaliop_migration_bundle.reference_resolver.content.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ContentResolver + kaliop_migration_bundle.reference_resolver.expression.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\ExpressionResolver + kaliop_migration_bundle.reference_resolver.location.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\LocationResolver + kaliop_migration_bundle.reference_resolver.loop.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\LoopResolver + kaliop_migration_bundle.reference_resolver.tag.class: Kaliop\IbexaMigrationBundle\Core\ReferenceResolver\TagResolver + + kaliop_migration_bundle.helper.limitation_converter.class: Kaliop\IbexaMigrationBundle\Core\Helper\LimitationConverter + kaliop_migration_bundle.helper.sort_converter.class: Kaliop\IbexaMigrationBundle\Core\Helper\SortConverter + kaliop_migration_bundle.helper.console_io.class: Kaliop\IbexaMigrationBundle\Core\Helper\ConsoleIO + kaliop_migration_bundle.helper.config.resolver: Kaliop\IbexaMigrationBundle\Core\Helper\ConfigResolver + + kaliop_migration_bundle.step_executed_listener.tracing.class: Kaliop\IbexaMigrationBundle\Core\EventListener\TracingStepExecutedListener services: - ibexa_migration_bundle.migration_service: + kaliop_migration_bundle.migration_service: public: true - class: '%ibexa_migration_bundle.migration_service.class%' + class: '%kaliop_migration_bundle.migration_service.class%' arguments: - - '@ibexa_migration_bundle.loader' - - '@ibexa_migration_bundle.storage_handler' + - '@kaliop_migration_bundle.loader' + - '@kaliop_migration_bundle.storage_handler' - '@ibexa.api.repository' - '@event_dispatcher' - - '@ibexa_migration_bundle.context_handler' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.context_handler' + - '@kaliop_migration_bundle.reference_resolver.customreference' tags: - - { name: ibexa_migration_bundle.context_provider, label: migration_service } + - { name: kaliop_migration_bundle.context_provider, label: migration_service } calls: - ['setPermissionResolver', ['@Ibexa\Contracts\Core\Repository\PermissionResolver']] - ['setUserService', ['@Ibexa\Contracts\Core\Repository\UserService']] @@ -159,746 +159,746 @@ services: ### loaders - ibexa_migration_bundle.loader: - alias: ibexa_migration_bundle.loader.filesystem + kaliop_migration_bundle.loader: + alias: kaliop_migration_bundle.loader.filesystem - ibexa_migration_bundle.loader.filesystem: - class: '%ibexa_migration_bundle.loader.filesystem.class%' + kaliop_migration_bundle.loader.filesystem: + class: '%kaliop_migration_bundle.loader.filesystem.class%' arguments: - '@kernel' - - 'ibexa_migration_bundle.version_directory' - - '@ibexa_migration_bundle.helper.config.resolver' + - 'kaliop_migration_bundle.version_directory' + - '@kaliop_migration_bundle.helper.config.resolver' - ibexa_migration_bundle.loader.filesystem_recursive: - class: '%ibexa_migration_bundle.loader.filesystem_recursive.class%' + kaliop_migration_bundle.loader.filesystem_recursive: + class: '%kaliop_migration_bundle.loader.filesystem_recursive.class%' arguments: - '@kernel' - - 'ibexa_migration_bundle.version_directory' - - '@ibexa_migration_bundle.helper.config.resolver' + - 'kaliop_migration_bundle.version_directory' + - '@kaliop_migration_bundle.helper.config.resolver' ### parsers - ibexa_migration_bundle.definition_parser.yaml: - class: '%ibexa_migration_bundle.definition_parser.yaml.class%' + kaliop_migration_bundle.definition_parser.yaml: + class: '%kaliop_migration_bundle.definition_parser.yaml.class%' arguments: [] tags: - - { name: ibexa_migration_bundle.definition_parser } + - { name: kaliop_migration_bundle.definition_parser } - ibexa_migration_bundle.definition_parser.json: - class: '%ibexa_migration_bundle.definition_parser.json.class%' + kaliop_migration_bundle.definition_parser.json: + class: '%kaliop_migration_bundle.definition_parser.json.class%' arguments: [] tags: - - { name: ibexa_migration_bundle.definition_parser } + - { name: kaliop_migration_bundle.definition_parser } - ibexa_migration_bundle.definition_parser.sql: - class: '%ibexa_migration_bundle.definition_parser.sql.class%' + kaliop_migration_bundle.definition_parser.sql: + class: '%kaliop_migration_bundle.definition_parser.sql.class%' arguments: - - '%ibexa_migration_bundle.valid_databases%' + - '%kaliop_migration_bundle.valid_databases%' tags: - - { name: ibexa_migration_bundle.definition_parser } + - { name: kaliop_migration_bundle.definition_parser } - ibexa_migration_bundle.definition_parser.php: - class: '%ibexa_migration_bundle.definition_parser.php.class%' + kaliop_migration_bundle.definition_parser.php: + class: '%kaliop_migration_bundle.definition_parser.php.class%' arguments: [] tags: - - { name: ibexa_migration_bundle.definition_parser } + - { name: kaliop_migration_bundle.definition_parser } ### storage handlers - ibexa_migration_bundle.storage_handler: - alias: ibexa_migration_bundle.storage_handler.database + kaliop_migration_bundle.storage_handler: + alias: kaliop_migration_bundle.storage_handler.database - ibexa_migration_bundle.storage_handler.database: - class: '%ibexa_migration_bundle.storage_handler.database.class%' + kaliop_migration_bundle.storage_handler.database: + class: '%kaliop_migration_bundle.storage_handler.database.class%' arguments: - '@ibexa.api.storage_engine.legacy.connection' - - 'ibexa_migration_bundle.table_name' - - '@ibexa_migration_bundle.helper.config.resolver' - - { charset: '%ibexa_migration_bundle.database_charset%', collate: '%ibexa_migration_bundle.database_collation%'} + - 'kaliop_migration_bundle.table_name' + - '@kaliop_migration_bundle.helper.config.resolver' + - { charset: '%kaliop_migration_bundle.database_charset%', collate: '%kaliop_migration_bundle.database_collation%'} - ibexa_migration_bundle.context_storage_handler: - alias: ibexa_migration_bundle.context_storage_handler.database + kaliop_migration_bundle.context_storage_handler: + alias: kaliop_migration_bundle.context_storage_handler.database - ibexa_migration_bundle.context_storage_handler.database: - class: '%ibexa_migration_bundle.context_storage_handler.database.class%' + kaliop_migration_bundle.context_storage_handler.database: + class: '%kaliop_migration_bundle.context_storage_handler.database.class%' arguments: - '@ibexa.api.storage_engine.legacy.connection' - - 'ibexa_migration_bundle.context_table_name' - - '@ibexa_migration_bundle.helper.config.resolver' - - { charset: '%ibexa_migration_bundle.database_charset%', collate: '%ibexa_migration_bundle.database_collation%' } + - 'kaliop_migration_bundle.context_table_name' + - '@kaliop_migration_bundle.helper.config.resolver' + - { charset: '%kaliop_migration_bundle.database_charset%', collate: '%kaliop_migration_bundle.database_collation%' } ### executors - ibexa_migration_bundle.executor.file: - class: '%ibexa_migration_bundle.executor.file.class%' + kaliop_migration_bundle.executor.file: + class: '%kaliop_migration_bundle.executor.file.class%' arguments: - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.http: - class: '%ibexa_migration_bundle.executor.http.class%' + kaliop_migration_bundle.executor.http: + class: '%kaliop_migration_bundle.executor.http.class%' arguments: - '@service_container' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.loop: - class: '%ibexa_migration_bundle.executor.loop.class%' + kaliop_migration_bundle.executor.loop: + class: '%kaliop_migration_bundle.executor.loop.class%' arguments: - - '@ibexa_migration_bundle.migration_service' - - '@ibexa_migration_bundle.reference_resolver.loop' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.migration_service' + - '@kaliop_migration_bundle.reference_resolver.loop' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } # avoid 'ServiceCircularReferenceException' errors by making this lazy lazy: true - ibexa_migration_bundle.executor.migration: - class: '%ibexa_migration_bundle.executor.migration.class%' + kaliop_migration_bundle.executor.migration: + class: '%kaliop_migration_bundle.executor.migration.class%' arguments: - - '@ibexa_migration_bundle.reference_matcher' - - '@ibexa_migration_bundle.reference_resolver.customreference' - - '@ibexa_migration_bundle.executor.content_manager' - - '@ibexa_migration_bundle.executor.location_manager' - - '@ibexa_migration_bundle.executor.content_type_manager' + - '@kaliop_migration_bundle.reference_matcher' + - '@kaliop_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.executor.content_manager' + - '@kaliop_migration_bundle.executor.location_manager' + - '@kaliop_migration_bundle.executor.content_type_manager' tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.migration_definition: - class: '%ibexa_migration_bundle.executor.migration_definition.class%' + kaliop_migration_bundle.executor.migration_definition: + class: '%kaliop_migration_bundle.executor.migration_definition.class%' arguments: - - '@ibexa_migration_bundle.migration_service' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.migration_service' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] # avoid 'ServiceCircularReferenceException' errors when this service is injected into a migration service # that is related to the event dispatcher by making it lazy lazy: true tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.php: - class: '%ibexa_migration_bundle.executor.php.class%' + kaliop_migration_bundle.executor.php: + class: '%kaliop_migration_bundle.executor.php.class%' arguments: - '@service_container' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.process: - class: '%ibexa_migration_bundle.executor.process.class%' + kaliop_migration_bundle.executor.process: + class: '%kaliop_migration_bundle.executor.process.class%' arguments: - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.reference: - class: '%ibexa_migration_bundle.executor.reference.class%' + kaliop_migration_bundle.executor.reference: + class: '%kaliop_migration_bundle.executor.reference.class%' arguments: - '@service_container' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.service: - class: '%ibexa_migration_bundle.executor.service.class%' + kaliop_migration_bundle.executor.service: + class: '%kaliop_migration_bundle.executor.service.class%' arguments: - '@service_container' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.sql: - class: '%ibexa_migration_bundle.executor.sql.class%' + kaliop_migration_bundle.executor.sql: + class: '%kaliop_migration_bundle.executor.sql.class%' arguments: - '@ibexa.api.storage_engine.legacy.connection' - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.repository: + kaliop_migration_bundle.executor.repository: abstract: true - class: '%ibexa_migration_bundle.executor.repository.class%' + class: '%kaliop_migration_bundle.executor.repository.class%' calls: - ['setRepository', ['@ibexa.api.repository']] - - ['setReferenceResolver', ['@ibexa_migration_bundle.reference_resolver.customreference']] + - ['setReferenceResolver', ['@kaliop_migration_bundle.reference_resolver.customreference']] - ['setConfigResolver', ['@ibexa.config.resolver']] # SF bug? this method is not called for child srevices as it belongs to a trait instead of teh base class... - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] - ['setPermissionResolver', ['@Ibexa\Contracts\Core\Repository\PermissionResolver']] - ['setUserService', ['@Ibexa\Contracts\Core\Repository\UserService']] - ibexa_migration_bundle.executor.content_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.content_manager.class%' - arguments: - - '@ibexa_migration_bundle.content_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.user_matcher' - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.object_state_group_matcher' - - '@ibexa_migration_bundle.complex_field_manager' - - '@ibexa_migration_bundle.executor.location_manager' - - '@ibexa_migration_bundle.helper.sort_converter' + kaliop_migration_bundle.executor.content_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.content_manager.class%' + arguments: + - '@kaliop_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.object_state_group_matcher' + - '@kaliop_migration_bundle.complex_field_manager' + - '@kaliop_migration_bundle.executor.location_manager' + - '@kaliop_migration_bundle.helper.sort_converter' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] - tags: - - { name: ibexa_migration_bundle.executor } - - ibexa_migration_bundle.executor.content_version_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.content_version_manager.class%' - arguments: - - '@ibexa_migration_bundle.content_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.user_matcher' - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.object_state_group_matcher' - - '@ibexa_migration_bundle.complex_field_manager' - - '@ibexa_migration_bundle.executor.location_manager' - - '@ibexa_migration_bundle.helper.sort_converter' - - '@ibexa_migration_bundle.content_version_matcher' + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] + tags: + - { name: kaliop_migration_bundle.executor } + + kaliop_migration_bundle.executor.content_version_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.content_version_manager.class%' + arguments: + - '@kaliop_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.object_state_group_matcher' + - '@kaliop_migration_bundle.complex_field_manager' + - '@kaliop_migration_bundle.executor.location_manager' + - '@kaliop_migration_bundle.helper.sort_converter' + - '@kaliop_migration_bundle.content_version_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.content_type_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.content_type_manager.class%' + kaliop_migration_bundle.executor.content_type_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.content_type_manager.class%' arguments: - - '@ibexa_migration_bundle.content_type_matcher' - - '@ibexa_migration_bundle.content_type_group_matcher' - - '@ibexa_migration_bundle.reference_resolver' - - '@ibexa_migration_bundle.complex_field_manager' - - '@ibexa_migration_bundle.helper.sort_converter' + - '@kaliop_migration_bundle.content_type_matcher' + - '@kaliop_migration_bundle.content_type_group_matcher' + - '@kaliop_migration_bundle.reference_resolver' + - '@kaliop_migration_bundle.complex_field_manager' + - '@kaliop_migration_bundle.helper.sort_converter' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.content_type_group_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.content_type_group_manager.class%' + kaliop_migration_bundle.executor.content_type_group_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.content_type_group_manager.class%' arguments: - - '@ibexa_migration_bundle.content_type_group_matcher' + - '@kaliop_migration_bundle.content_type_group_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.language_manager: - class: '%ibexa_migration_bundle.executor.language_manager.class%' - parent: ibexa_migration_bundle.executor.repository + kaliop_migration_bundle.executor.language_manager: + class: '%kaliop_migration_bundle.executor.language_manager.class%' + parent: kaliop_migration_bundle.executor.repository arguments: - - '@ibexa_migration_bundle.language_matcher' + - '@kaliop_migration_bundle.language_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.location_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.location_manager.class%' + kaliop_migration_bundle.executor.location_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.location_manager.class%' arguments: - - '@ibexa_migration_bundle.content_matcher' - - '@ibexa_migration_bundle.location_matcher' - - '@ibexa_migration_bundle.helper.sort_converter' + - '@kaliop_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.location_matcher' + - '@kaliop_migration_bundle.helper.sort_converter' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.object_state_manager: - class: '%ibexa_migration_bundle.executor.object_state_manager.class%' - parent: ibexa_migration_bundle.executor.repository + kaliop_migration_bundle.executor.object_state_manager: + class: '%kaliop_migration_bundle.executor.object_state_manager.class%' + parent: kaliop_migration_bundle.executor.repository arguments: - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.object_state_group_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.object_state_group_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.object_state_group_manager: - class: '%ibexa_migration_bundle.executor.object_state_group_manager.class%' - parent: ibexa_migration_bundle.executor.repository + kaliop_migration_bundle.executor.object_state_group_manager: + class: '%kaliop_migration_bundle.executor.object_state_group_manager.class%' + parent: kaliop_migration_bundle.executor.repository arguments: - - '@ibexa_migration_bundle.object_state_group_matcher' + - '@kaliop_migration_bundle.object_state_group_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.role_manager: - class: '%ibexa_migration_bundle.executor.role_manager.class%' - parent: ibexa_migration_bundle.executor.repository + kaliop_migration_bundle.executor.role_manager: + class: '%kaliop_migration_bundle.executor.role_manager.class%' + parent: kaliop_migration_bundle.executor.repository arguments: - - '@ibexa_migration_bundle.role_matcher' - - '@ibexa_migration_bundle.helper.limitation_converter' + - '@kaliop_migration_bundle.role_matcher' + - '@kaliop_migration_bundle.helper.limitation_converter' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.section_manager: - class: '%ibexa_migration_bundle.executor.section_manager.class%' - parent: ibexa_migration_bundle.executor.repository + kaliop_migration_bundle.executor.section_manager: + class: '%kaliop_migration_bundle.executor.section_manager.class%' + parent: kaliop_migration_bundle.executor.repository arguments: - - '@ibexa_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.section_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.tag_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.tag_manager.class%' + kaliop_migration_bundle.executor.tag_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.tag_manager.class%' arguments: - - '@ibexa_migration_bundle.tag_matcher' + - '@kaliop_migration_bundle.tag_matcher' - '@?eztags.api.service.tags' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.trash_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.trash_manager.class%' + kaliop_migration_bundle.executor.trash_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.trash_manager.class%' arguments: - - '@ibexa_migration_bundle.trash_matcher' - - '@ibexa_migration_bundle.helper.sort_converter' + - '@kaliop_migration_bundle.trash_matcher' + - '@kaliop_migration_bundle.helper.sort_converter' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.user_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.user_manager.class%' + kaliop_migration_bundle.executor.user_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.user_manager.class%' arguments: - - '@ibexa_migration_bundle.user_matcher' - - '@ibexa_migration_bundle.user_group_matcher' - - '@ibexa_migration_bundle.role_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '@kaliop_migration_bundle.user_group_matcher' + - '@kaliop_migration_bundle.role_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.url_alias: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.url_alias.class%' + kaliop_migration_bundle.executor.url_alias: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.url_alias.class%' arguments: - - '@ibexa_migration_bundle.url_alias_matcher' - - '@ibexa_migration_bundle.executor.location_manager' + - '@kaliop_migration_bundle.url_alias_matcher' + - '@kaliop_migration_bundle.executor.location_manager' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.url_wildcard: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.url_wildcard.class%' + kaliop_migration_bundle.executor.url_wildcard: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.url_wildcard.class%' arguments: - - '@ibexa_migration_bundle.url_wildcard_matcher' + - '@kaliop_migration_bundle.url_wildcard_matcher' calls: - - [ 'setReferenceMatcher', [ '@ibexa_migration_bundle.reference_matcher' ] ] + - [ 'setReferenceMatcher', [ '@kaliop_migration_bundle.reference_matcher' ] ] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } - ibexa_migration_bundle.executor.user_group_manager: - parent: ibexa_migration_bundle.executor.repository - class: '%ibexa_migration_bundle.executor.user_group_manager.class%' + kaliop_migration_bundle.executor.user_group_manager: + parent: kaliop_migration_bundle.executor.repository + class: '%kaliop_migration_bundle.executor.user_group_manager.class%' arguments: - - '@ibexa_migration_bundle.user_group_matcher' - - '@ibexa_migration_bundle.role_matcher' - - '@ibexa_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.user_group_matcher' + - '@kaliop_migration_bundle.role_matcher' + - '@kaliop_migration_bundle.section_matcher' calls: - - ['setReferenceMatcher', ['@ibexa_migration_bundle.reference_matcher']] + - ['setReferenceMatcher', ['@kaliop_migration_bundle.reference_matcher']] tags: - - { name: ibexa_migration_bundle.executor } + - { name: kaliop_migration_bundle.executor } ### matchers - ibexa_migration_bundle.content_matcher: - class: '%ibexa_migration_bundle.content_matcher.class%' + kaliop_migration_bundle.content_matcher: + class: '%kaliop_migration_bundle.content_matcher.class%' arguments: - '@ibexa.api.repository' - - '@ibexa_migration_bundle.user_group_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.user_matcher' - - '%ibexa_migration_bundle.query_limit%' + - '@kaliop_migration_bundle.user_group_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '%kaliop_migration_bundle.query_limit%' - '@Ibexa\Core\QueryType\ArrayQueryTypeRegistry' - ibexa_migration_bundle.content_type_matcher: - class: '%ibexa_migration_bundle.content_type_matcher.class%' + kaliop_migration_bundle.content_type_matcher: + class: '%kaliop_migration_bundle.content_type_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.content_type_group_matcher: - class: '%ibexa_migration_bundle.content_type_group_matcher.class%' + kaliop_migration_bundle.content_type_group_matcher: + class: '%kaliop_migration_bundle.content_type_group_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.content_version_matcher: - class: '%ibexa_migration_bundle.content_version_matcher.class%' + kaliop_migration_bundle.content_version_matcher: + class: '%kaliop_migration_bundle.content_version_matcher.class%' arguments: - '@ibexa.api.repository' - - '@ibexa_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.content_matcher' - ibexa_migration_bundle.language_matcher: - class: '%ibexa_migration_bundle.language_matcher.class%' + kaliop_migration_bundle.language_matcher: + class: '%kaliop_migration_bundle.language_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.location_matcher: - class: '%ibexa_migration_bundle.location_matcher.class%' + kaliop_migration_bundle.location_matcher: + class: '%kaliop_migration_bundle.location_matcher.class%' arguments: - '@ibexa.api.repository' - - '@ibexa_migration_bundle.user_group_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.user_matcher' - - '%ibexa_migration_bundle.query_limit%' + - '@kaliop_migration_bundle.user_group_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '%kaliop_migration_bundle.query_limit%' - '@Ibexa\Core\QueryType\ArrayQueryTypeRegistry' - ibexa_migration_bundle.object_state_matcher: - class: '%ibexa_migration_bundle.object_state_matcher.class%' + kaliop_migration_bundle.object_state_matcher: + class: '%kaliop_migration_bundle.object_state_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.object_state_group_matcher: - class: '%ibexa_migration_bundle.object_state_group_matcher.class%' + kaliop_migration_bundle.object_state_group_matcher: + class: '%kaliop_migration_bundle.object_state_group_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.reference_matcher: - class: '%ibexa_migration_bundle.reference_matcher.class%' + kaliop_migration_bundle.reference_matcher: + class: '%kaliop_migration_bundle.reference_matcher.class%' arguments: - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' - '@validator' - ibexa_migration_bundle.role_matcher: - class: '%ibexa_migration_bundle.role_matcher.class%' + kaliop_migration_bundle.role_matcher: + class: '%kaliop_migration_bundle.role_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.section_matcher: - class: '%ibexa_migration_bundle.section_matcher.class%' + kaliop_migration_bundle.section_matcher: + class: '%kaliop_migration_bundle.section_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.tag_matcher: - class: '%ibexa_migration_bundle.tag_matcher.class%' + kaliop_migration_bundle.tag_matcher: + class: '%kaliop_migration_bundle.tag_matcher.class%' arguments: - '@Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface' - '@?eztags.api.service.tags' - ibexa_migration_bundle.trash_matcher: - class: '%ibexa_migration_bundle.trash_matcher.class%' + kaliop_migration_bundle.trash_matcher: + class: '%kaliop_migration_bundle.trash_matcher.class%' arguments: - '@ibexa.api.repository' - - '@ibexa_migration_bundle.user_group_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.object_state_matcher' - - '@ibexa_migration_bundle.user_matcher' - - '%ibexa_migration_bundle.query_limit%' + - '@kaliop_migration_bundle.user_group_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.object_state_matcher' + - '@kaliop_migration_bundle.user_matcher' + - '%kaliop_migration_bundle.query_limit%' - ibexa_migration_bundle.url_alias_matcher: - class: '%ibexa_migration_bundle.url_alias_matcher.class%' + kaliop_migration_bundle.url_alias_matcher: + class: '%kaliop_migration_bundle.url_alias_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.url_wildcard_matcher: - class: '%ibexa_migration_bundle.url_wildcard_matcher.class%' + kaliop_migration_bundle.url_wildcard_matcher: + class: '%kaliop_migration_bundle.url_wildcard_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.user_matcher: - class: '%ibexa_migration_bundle.user_matcher.class%' + kaliop_migration_bundle.user_matcher: + class: '%kaliop_migration_bundle.user_matcher.class%' arguments: - '@ibexa.api.repository' - ibexa_migration_bundle.user_group_matcher: - class: '%ibexa_migration_bundle.user_group_matcher.class%' + kaliop_migration_bundle.user_group_matcher: + class: '%kaliop_migration_bundle.user_group_matcher.class%' arguments: - '@ibexa.api.repository' ### field handlers - ibexa_migration_bundle.complex_field_manager: - class: '%ibexa_migration_bundle.complex_field_manager.class%' + kaliop_migration_bundle.complex_field_manager: + class: '%kaliop_migration_bundle.complex_field_manager.class%' arguments: - '@ibexa.api.service.field_type' - ibexa_migration_bundle.complex_field: + kaliop_migration_bundle.complex_field: abstract: true calls: - - ['setReferenceResolver', ['@ibexa_migration_bundle.reference_resolver.customreference']] + - ['setReferenceResolver', ['@kaliop_migration_bundle.reference_resolver.customreference']] # NB: you can register handlers for either a field type, using the 'fieldtype' attribute, or for the # field type of a specific content type by using both 'fieldtype' and 'contenttype' in the tag definition - ibexa_migration_bundle.complex_field.ibexa_author: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_author.class%' + kaliop_migration_bundle.complex_field.ibexa_author: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_author.class%' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_author, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_author, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_binaryfile: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_binaryfile.class%' + kaliop_migration_bundle.complex_field.ibexa_binaryfile: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_binaryfile.class%' arguments: - "$io.root_dir$" - "@?ibexa.core.io.default_url_decorator" - "@?ibexa.field_type.ibexa_binaryfile.io_service" tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_binaryfile, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_binaryfile, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_boolean: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_boolean.class%' + kaliop_migration_bundle.complex_field.ibexa_boolean: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_boolean.class%' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_boolean, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_boolean, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_country: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.country.class%' + kaliop_migration_bundle.complex_field.ibexa_country: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.country.class%' arguments: - '@ibexa.api.service.content_type' - '@ibexa.api.service.field_type' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_country, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_country, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_date: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_date.class%' + kaliop_migration_bundle.complex_field.ibexa_date: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_date.class%' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_date, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_date, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_datetime: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_datetime.class%' + kaliop_migration_bundle.complex_field.ibexa_datetime: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_datetime.class%' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_datetime, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_datetime, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_image: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_image.class%' + kaliop_migration_bundle.complex_field.ibexa_image: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_image.class%' arguments: - "$io.root_dir$" - "@?ibexa.core.io.default_url_decorator" tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_image, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_image, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_matrix: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_matrix.class%' + kaliop_migration_bundle.complex_field.ibexa_matrix: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_matrix.class%' #arguments: # - "$io.root_dir$" # - "@?ibexa.core.io.default_url_decorator" tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_matrix, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_matrix, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_media: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_media.class%' + kaliop_migration_bundle.complex_field.ibexa_media: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_media.class%' arguments: - "$io.root_dir$" - "@?ibexa.core.io.default_url_decorator" - "@?ibexa.field_type.ibexa_binaryfile.io_service" tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_media, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_media, priority: 0 } - #ibexa_migration_bundle.complex_field.ezpage: + #kaliop_migration_bundle.complex_field.ezpage: # lazy: true - # parent: ibexa_migration_bundle.complex_field - # class: '%ibexa_migration_bundle.complex_field.ezpage.class%' + # parent: kaliop_migration_bundle.complex_field + # class: '%kaliop_migration_bundle.complex_field.ezpage.class%' # arguments: # - '@ibexa.fieldType.ezpage.pageService' # tags: - # - { name: ibexa_migration_bundle.complex_field, fieldtype: ezpage, priority: 0 } + # - { name: kaliop_migration_bundle.complex_field, fieldtype: ezpage, priority: 0 } - ibexa_migration_bundle.complex_field.ezrelation: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ezrelation.class%' + kaliop_migration_bundle.complex_field.ezrelation: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ezrelation.class%' arguments: - - '@ibexa_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.content_matcher' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_object_relation, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_object_relation, priority: 0 } - ibexa_migration_bundle.complex_field.ezrelationlist: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ezrelationlist.class%' + kaliop_migration_bundle.complex_field.ezrelationlist: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ezrelationlist.class%' arguments: - - '@ibexa_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.content_matcher' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_object_relation_list, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_object_relation_list, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_richtext: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_richtext.class%' + kaliop_migration_bundle.complex_field.ibexa_richtext: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_richtext.class%' arguments: # if you want to replace custom references in rich text fields, you can replace this with a new service # built f.e. using the ChainPrefixResolver class - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_richtext, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_richtext, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_selection: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_selection.class%' + kaliop_migration_bundle.complex_field.ibexa_selection: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_selection.class%' arguments: - '@ibexa.api.repository' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_selection, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_selection, priority: 0 } - ibexa_migration_bundle.complex_field.ezxmltext: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ezxmltext.class%' + kaliop_migration_bundle.complex_field.ezxmltext: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ezxmltext.class%' arguments: # if you want to replace custom references in rich text fields, you can replace this with a new service # built f.e. using the ChainPrefixResolver class - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ezxmltext, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ezxmltext, priority: 0 } - ibexa_migration_bundle.complex_field.eztags: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.eztags.class%' + kaliop_migration_bundle.complex_field.eztags: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.eztags.class%' arguments: - - '@ibexa_migration_bundle.tag_matcher' + - '@kaliop_migration_bundle.tag_matcher' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: eztags, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: eztags, priority: 0 } - ibexa_migration_bundle.complex_field.ibexa_image_asset: - parent: ibexa_migration_bundle.complex_field - class: '%ibexa_migration_bundle.complex_field.ibexa_image_asset.class%' + kaliop_migration_bundle.complex_field.ibexa_image_asset: + parent: kaliop_migration_bundle.complex_field + class: '%kaliop_migration_bundle.complex_field.ibexa_image_asset.class%' arguments: - - '@ibexa_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.content_matcher' tags: - - { name: ibexa_migration_bundle.complex_field, fieldtype: ibexa_image_asset, priority: 0 } + - { name: kaliop_migration_bundle.complex_field, fieldtype: ibexa_image_asset, priority: 0 } ### reference resolvers # A service that will resolve *any* possible reference. To be used with care # At the moment is is only used to resolve references in definitions of FieldType settings, and even then, only # for backwards compatibility - ibexa_migration_bundle.reference_resolver: - alias: ibexa_migration_bundle.reference_resolver.chain + kaliop_migration_bundle.reference_resolver: + alias: kaliop_migration_bundle.reference_resolver.chain - ibexa_migration_bundle.reference_resolver.chain: - class: '%ibexa_migration_bundle.reference_resolver.chain.class%' + kaliop_migration_bundle.reference_resolver.chain: + class: '%kaliop_migration_bundle.reference_resolver.chain.class%' arguments: - - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' # Neither location nor content resolving are enabled by default any more - #- '@ibexa_migration_bundle.reference_resolver.location' - #- '@ibexa_migration_bundle.reference_resolver.content' - - '@ibexa_migration_bundle.reference_resolver.tag' + #- '@kaliop_migration_bundle.reference_resolver.location' + #- '@kaliop_migration_bundle.reference_resolver.content' + - '@kaliop_migration_bundle.reference_resolver.tag' - ibexa_migration_bundle.reference_resolver.content: - class: '%ibexa_migration_bundle.reference_resolver.content.class%' + kaliop_migration_bundle.reference_resolver.content: + class: '%kaliop_migration_bundle.reference_resolver.content.class%' arguments: - - '@ibexa_migration_bundle.content_matcher' + - '@kaliop_migration_bundle.content_matcher' - ibexa_migration_bundle.reference_resolver.expression: - class: '%ibexa_migration_bundle.reference_resolver.expression.class%' + kaliop_migration_bundle.reference_resolver.expression: + class: '%kaliop_migration_bundle.reference_resolver.expression.class%' arguments: - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' lazy: true - ibexa_migration_bundle.reference_resolver.location: - class: '%ibexa_migration_bundle.reference_resolver.location.class%' + kaliop_migration_bundle.reference_resolver.location: + class: '%kaliop_migration_bundle.reference_resolver.location.class%' arguments: - - '@ibexa_migration_bundle.location_matcher' + - '@kaliop_migration_bundle.location_matcher' - ibexa_migration_bundle.reference_resolver.loop: - class: '%ibexa_migration_bundle.reference_resolver.loop.class%' + kaliop_migration_bundle.reference_resolver.loop: + class: '%kaliop_migration_bundle.reference_resolver.loop.class%' - ibexa_migration_bundle.reference_resolver.tag: - class: '%ibexa_migration_bundle.reference_resolver.tag.class%' + kaliop_migration_bundle.reference_resolver.tag: + class: '%kaliop_migration_bundle.reference_resolver.tag.class%' arguments: - - '@ibexa_migration_bundle.tag_matcher' + - '@kaliop_migration_bundle.tag_matcher' # A service which resolves *only* custom references (plus loop variables and expressions). As such, it is used in most places - ibexa_migration_bundle.reference_resolver.customreference: - alias: ibexa_migration_bundle.reference_resolver.customreference.flexible + kaliop_migration_bundle.reference_resolver.customreference: + alias: kaliop_migration_bundle.reference_resolver.customreference.flexible - ibexa_migration_bundle.reference_resolver.customreference.base: - class: '%ibexa_migration_bundle.reference_resolver.customreference.class%' + kaliop_migration_bundle.reference_resolver.customreference.base: + class: '%kaliop_migration_bundle.reference_resolver.customreference.class%' arguments: [] tags: - - { name: ibexa_migration_bundle.context_provider, label: reference_resolver_customreference } + - { name: kaliop_migration_bundle.context_provider, label: reference_resolver_customreference } - # NB: This service will see added to the chain any service tagged as 'ibexa_migration_bundle.reference_resolver.customreference' - ibexa_migration_bundle.reference_resolver.customreference.flexible: - class: '%ibexa_migration_bundle.reference_resolver.chain_prefix.class%' + # NB: This service will see added to the chain any service tagged as 'kaliop_migration_bundle.reference_resolver.customreference' + kaliop_migration_bundle.reference_resolver.customreference.flexible: + class: '%kaliop_migration_bundle.reference_resolver.chain_prefix.class%' arguments: - - - '@ibexa_migration_bundle.reference_resolver.customreference.base' - - '@ibexa_migration_bundle.reference_resolver.loop' - - '@ibexa_migration_bundle.reference_resolver.expression' + - '@kaliop_migration_bundle.reference_resolver.customreference.base' + - '@kaliop_migration_bundle.reference_resolver.loop' + - '@kaliop_migration_bundle.reference_resolver.expression' ### misc - ibexa_migration_bundle.context_handler: - class: '%ibexa_migration_bundle.context_handler.class%' + kaliop_migration_bundle.context_handler: + class: '%kaliop_migration_bundle.context_handler.class%' arguments: - - '@ibexa_migration_bundle.context_storage_handler' + - '@kaliop_migration_bundle.context_storage_handler' lazy: true # This service is used for the verbose mode when executing migrations on the command line - ibexa_migration_bundle.step_executed_listener.tracing: + kaliop_migration_bundle.step_executed_listener.tracing: public: true - class: '%ibexa_migration_bundle.step_executed_listener.tracing.class%' + class: '%kaliop_migration_bundle.step_executed_listener.tracing.class%' arguments: - - '%ibexa_migration_bundle.enable_debug_output%' + - '%kaliop_migration_bundle.enable_debug_output%' tags: - { name: kernel.event_listener, event: ibexa_migration.before_execution, method: onBeforeStepExecution } - { name: kernel.event_listener, event: ibexa_migration.step_executed, method: onStepExecuted } - { name: kernel.event_listener, event: ibexa_migration.migration_aborted, method: onMigrationAborted } - { name: kernel.event_listener, event: ibexa_migration.migration_suspended, method: onMigrationSuspended } - ibexa_migration_bundle.helper.limitation_converter: - class: '%ibexa_migration_bundle.helper.limitation_converter.class%' + kaliop_migration_bundle.helper.limitation_converter: + class: '%kaliop_migration_bundle.helper.limitation_converter.class%' arguments: - '%ibexa.site_access.list%' - - '@ibexa_migration_bundle.location_matcher' - - '@ibexa_migration_bundle.section_matcher' - - '@ibexa_migration_bundle.content_type_matcher' + - '@kaliop_migration_bundle.location_matcher' + - '@kaliop_migration_bundle.section_matcher' + - '@kaliop_migration_bundle.content_type_matcher' - ibexa_migration_bundle.helper.sort_converter: - class: '%ibexa_migration_bundle.helper.sort_converter.class%' + kaliop_migration_bundle.helper.sort_converter: + class: '%kaliop_migration_bundle.helper.sort_converter.class%' - ibexa_migration_bundle.helper.console_io: - class: '%ibexa_migration_bundle.helper.console_io.class%' + kaliop_migration_bundle.helper.console_io: + class: '%kaliop_migration_bundle.helper.console_io.class%' public: true tags: - { name: kernel.event_listener, event: console.command } - ibexa_migration_bundle.helper.config.resolver: - class: '%ibexa_migration_bundle.helper.config.resolver%' + kaliop_migration_bundle.helper.config.resolver: + class: '%kaliop_migration_bundle.helper.config.resolver%' arguments: - '@ibexa.config.resolver' - '@service_container' @@ -910,9 +910,9 @@ services: ### Aliases - Kaliop\IbexaMigrationBundle\API\ConfigResolverInterface: '@ibexa_migration_bundle.helper.config.resolver' - Kaliop\IbexaMigrationBundle\Core\MigrationService: '@ibexa_migration_bundle.migration_service' - Kaliop\IbexaMigrationBundle\Core\EventListener\TracingStepExecutedListener: '@ibexa_migration_bundle.step_executed_listener.tracing' - Kaliop\IbexaMigrationBundle\Core\Loader\FilesystemRecursive: '@ibexa_migration_bundle.loader.filesystem_recursive' - Kaliop\IbexaMigrationBundle\API\ReferenceBagInterface: '@ibexa_migration_bundle.reference_resolver.customreference' - Kaliop\IbexaMigrationBundle\API\ReferenceResolverBagInterface: '@ibexa_migration_bundle.reference_resolver.customreference' + Kaliop\IbexaMigrationBundle\API\ConfigResolverInterface: '@kaliop_migration_bundle.helper.config.resolver' + Kaliop\IbexaMigrationBundle\Core\MigrationService: '@kaliop_migration_bundle.migration_service' + Kaliop\IbexaMigrationBundle\Core\EventListener\TracingStepExecutedListener: '@kaliop_migration_bundle.step_executed_listener.tracing' + Kaliop\IbexaMigrationBundle\Core\Loader\FilesystemRecursive: '@kaliop_migration_bundle.loader.filesystem_recursive' + Kaliop\IbexaMigrationBundle\API\ReferenceBagInterface: '@kaliop_migration_bundle.reference_resolver.customreference' + Kaliop\IbexaMigrationBundle\API\ReferenceResolverBagInterface: '@kaliop_migration_bundle.reference_resolver.customreference' diff --git a/Resources/doc/Upgrading/ezmigrationbundle_to_ibexamigrationbundle.md b/Resources/doc/Upgrading/ezmigrationbundle_to_ibexamigrationbundle.md index 1aeca23..ec6b98f 100644 --- a/Resources/doc/Upgrading/ezmigrationbundle_to_ibexamigrationbundle.md +++ b/Resources/doc/Upgrading/ezmigrationbundle_to_ibexamigrationbundle.md @@ -3,16 +3,16 @@ IbexaMigrationBundle2 deprecations and backwards compatibility breaks Upgrade notes for developers coming from an ezmgrationbundle installation. -* the default migration directory name is now `MigrationsDefinitions`, instead of `MigrationVersions`. +* the default migration directory name is now `KaliopMigrations`, instead of `MigrationVersions` or `MigrationsDefinitions`. A Symfony parameter is available to tweak that name if you feel the need to. - Also, the `src/MigrationsDefinitons` directory is searched for migrations, if it exists, besides the + Also, the `src/KaliopMigrations` directory is searched for migrations, if it exists, besides the bundles directories. -* config parameter `kaliop_bundle_migration.version_directory` was renamed to `ibexa_migration_bundle.version_directory`. +* config parameter `kaliop_bundle_migration.version_directory` was renamed to `kaliop_migration_bundle.version_directory`. * deprecated parameter config `kaliop_bundle_migration.table_name` was dropped -* service `ibexa_migration_bundle.complex_field.ezpage` has been removed, as upstream has dropped the ezpage field type +* service `kaliop_migration_bundle.complex_field.ezpage` has been removed, as upstream has dropped the ezpage field type * cli command `kaliop:migration:update` was removed. It was an alias of `kaliop:migration:migrate` diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index 24f43c2..8d7c63c 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -26,4 +26,4 @@ /// @todo if the kernel is booted first with this variable set to false, by eg. running a cli command instead of phpunit, /// then it will be cached with the test config not loaded, which will make tests fail. How to prevent that? -Kaliop\IbexaMigrationBundle\DependencyInjection\IbexaMigrationExtension::$loadTestConfig = true; +Kaliop\IbexaMigrationBundle\DependencyInjection\KaliopMigrationExtension::$loadTestConfig = true; diff --git a/Tests/config/services.yml b/Tests/config/services.yml index 983ea3b..e9489c6 100644 --- a/Tests/config/services.yml +++ b/Tests/config/services.yml @@ -35,32 +35,32 @@ parameters: filters: [] services: - ibexa_migration_bundle.test.executor.assert: + kaliop_migration_bundle.test.executor.assert: class: Kaliop\IbexaMigrationBundle\Tests\helper\AssertExecutor arguments: - - '@ibexa_migration_bundle.reference_resolver.customreference' + - '@kaliop_migration_bundle.reference_resolver.customreference' tags: - - { name: ibexa_migration_bundle.executor } - ibexa_migration_bundle.test.step_executed_listener: + - { name: kaliop_migration_bundle.executor } + kaliop_migration_bundle.test.step_executed_listener: class: Kaliop\IbexaMigrationBundle\Tests\helper\StepExecutedListener tags: - { name: kernel.event_listener, event: ibexa_migration.step_executed, method: onStepExecuted } - ibexa_migration_bundle.test.before_step_execution_listener: + kaliop_migration_bundle.test.before_step_execution_listener: class: Kaliop\IbexaMigrationBundle\Tests\helper\BeforeStepExecutionListener tags: - { name: kernel.event_listener, event: ibexa_migration.before_execution, method: onBeforeStepExecution } - ibexa_migration_bundle.test.before_migration_generated_listener: + kaliop_migration_bundle.test.before_migration_generated_listener: class: Kaliop\IbexaMigrationBundle\Tests\helper\MigrationGeneratedListener tags: - { name: kernel.event_listener, event: ibexa_migration.migration_generated, method: onMigrationGenerated } - ibexa_migration_bundle.test.custom_reference_resolver: + kaliop_migration_bundle.test.custom_reference_resolver: class: Kaliop\IbexaMigrationBundle\Tests\helper\CustomReferenceResolver tags: - - { name: ibexa_migration_bundle.reference_resolver.customreference } - ibexa_migration_bundle.test.just_a_service: + - { name: kaliop_migration_bundle.reference_resolver.customreference } + kaliop_migration_bundle.test.just_a_service: class: Kaliop\IbexaMigrationBundle\Tests\helper\JustAService public: true - ibexa_migration_bundle.test.query_type: + kaliop_migration_bundle.test.query_type: class: Kaliop\IbexaMigrationBundle\Tests\helper\MigrationTestQueryType tags: - { name: ezpublish.query_type } diff --git a/Tests/dsl/good/UnitTestOK027_services.yml b/Tests/dsl/good/UnitTestOK027_services.yml index 80ef2f5..63a68d9 100644 --- a/Tests/dsl/good/UnitTestOK027_services.yml +++ b/Tests/dsl/good/UnitTestOK027_services.yml @@ -7,7 +7,7 @@ - type: service mode: call - service: ibexa_migration_bundle.test.just_a_service + service: kaliop_migration_bundle.test.just_a_service method: echoBack arguments: - 'reference:kmb_test_ref_027' @@ -26,7 +26,7 @@ - type: service mode: call - service: ibexa_migration_bundle.test.just_a_service + service: kaliop_migration_bundle.test.just_a_service method: throwMigrationAbortedException arguments: - 'abc' diff --git a/Tests/phpunit/02_ServiceTest.php b/Tests/phpunit/02_ServiceTest.php index bc36e8a..65b77e5 100644 --- a/Tests/phpunit/02_ServiceTest.php +++ b/Tests/phpunit/02_ServiceTest.php @@ -8,14 +8,14 @@ use Kaliop\IbexaMigrationBundle\API\Value\Migration; /** - * Tests usage of ibexa_migration_bundle.migration_service outside console commands + * Tests usage of kaliop_migration_bundle.migration_service outside console commands * @todo should we extend just KernelTestCase ? */ class ServiceTest extends CommandExecutingTest implements ExecutorInterface { public function testMigrationFetching() { - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $ms->addExecutor($this); $md = new MigrationDefinition( 'storage_test1.json', diff --git a/Tests/phpunit/04_MigrateTest.php b/Tests/phpunit/04_MigrateTest.php index d9c2225..346a55f 100644 --- a/Tests/phpunit/04_MigrateTest.php +++ b/Tests/phpunit/04_MigrateTest.php @@ -130,7 +130,7 @@ public function testSetRef() { $filePath = $this->dslDir.'/misc/UnitTestOK031_helloworld.yml'; - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); // Make sure migration is not in the db: delete it, ignoring errors $this->prepareMigration($filePath); @@ -175,7 +175,7 @@ public function testCancelledExecution() { $filePath = $this->dslDir.'/misc/UnitTestOK019_cancel.yml'; - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); // Make sure migration is not in the db: delete it, ignoring errors $this->prepareMigration($filePath); @@ -200,7 +200,7 @@ public function testFailedExecution() { $filePath = $this->dslDir.'/misc/UnitTestOK020_fail.yml'; - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); // Make sure migration is not in the db: delete it, ignoring errors $this->prepareMigration($filePath); diff --git a/Tests/phpunit/08_ExceptionsTest.php b/Tests/phpunit/08_ExceptionsTest.php index 296f8c6..a253bdf 100644 --- a/Tests/phpunit/08_ExceptionsTest.php +++ b/Tests/phpunit/08_ExceptionsTest.php @@ -15,7 +15,7 @@ class ExceptionsTest extends MigrationExecutingTest implements ExecutorInterface */ public function testMigrationCancelledException() { - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $ms->addExecutor($this); $md = new MigrationDefinition( @@ -34,7 +34,7 @@ public function testMigrationCancelledException() public function testMigrationFailedException() { - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $ms->addExecutor($this); $md = new MigrationDefinition( @@ -53,7 +53,7 @@ public function testMigrationFailedException() public function testMigrationThrowingException() { - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $ms->addExecutor($this); $md = new MigrationDefinition( @@ -80,7 +80,7 @@ public function testMigrationThrowingException() public function testInvalidUserAccountException() { //$bundles = $this->getBootedContainer()->getParameter('kernel.bundles'); - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $filePath = $this->dslDir . '/misc/UnitTestOK801_loadSomething.yml'; diff --git a/Tests/phpunit/10_ResumeTest.php b/Tests/phpunit/10_ResumeTest.php index fd2f4f9..a9a06d5 100644 --- a/Tests/phpunit/10_ResumeTest.php +++ b/Tests/phpunit/10_ResumeTest.php @@ -15,7 +15,7 @@ public function testSuspend() { $filePath = $this->dslDir.'/resume/UnitTestOK1001_suspend.yml'; - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); // Make sure migration is not in the db: delete it, ignoring errors $this->prepareMigration($filePath); diff --git a/Tests/phpunit/MigrationExecutingTest.php b/Tests/phpunit/MigrationExecutingTest.php index 7df1d5f..d5fbcce 100644 --- a/Tests/phpunit/MigrationExecutingTest.php +++ b/Tests/phpunit/MigrationExecutingTest.php @@ -80,7 +80,7 @@ protected function executeMigration($filePath, $flags = array(), $expectedStatus $this->assertMatchesRegularExpression('?Processing ' . preg_quote(basename($filePath), '?') . '?', $output); - $ms = $this->getBootedContainer()->get('ibexa_migration_bundle.migration_service'); + $ms = $this->getBootedContainer()->get('kaliop_migration_bundle.migration_service'); $m = $ms->getMigration(basename($filePath)); if ($expectedStatus !== false && $expectedStatus !== null) {