diff --git a/composer.json b/composer.json index 75a3d5c..6d8a8ed 100644 --- a/composer.json +++ b/composer.json @@ -11,5 +11,8 @@ "psr-4": { "MummertMedia\\ContaoMeilisearchBundle\\": "src/" } + }, + "extra": { + "contao-manager-plugin": "MummertMedia\\ContaoMeilisearchBundle\\ContaoManager\\Plugin" } } \ No newline at end of file diff --git a/src/ContaoManager/Plugin.php b/src/ContaoManager/Plugin.php new file mode 100644 index 0000000..61309b3 --- /dev/null +++ b/src/ContaoManager/Plugin.php @@ -0,0 +1,19 @@ +setLoadAfter([ContaoCoreBundle::class]), + ]; + } +} \ No newline at end of file diff --git a/src/DependencyInjection/ContaoMeilisearchExtension.php b/src/DependencyInjection/ContaoMeilisearchExtension.php new file mode 100644 index 0000000..b92da36 --- /dev/null +++ b/src/DependencyInjection/ContaoMeilisearchExtension.php @@ -0,0 +1,17 @@ +load('services.yaml'); + } +} \ No newline at end of file diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index c4a96cf..0d87986 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -1,4 +1,8 @@ services: + _defaults: + autowire: true + autoconfigure: true + MummertMedia\ContaoMeilisearchBundle\Migration\ExtendTlSearchMigration: arguments: - '@database_connection'