From 71485aac9bbe25cd145261d8650ed192e4661e37 Mon Sep 17 00:00:00 2001 From: Mauro Altamura Date: Wed, 11 Jan 2023 15:08:48 +0100 Subject: [PATCH] IBX-1295: Command "jms-job-queue:run" throws table doesn't exist Added configuration for em --- DependencyInjection/JMSJobQueueExtension.php | 5 +++++ Resources/config/ezplatform.yaml | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 Resources/config/ezplatform.yaml diff --git a/DependencyInjection/JMSJobQueueExtension.php b/DependencyInjection/JMSJobQueueExtension.php index b8be3fab..adaa3ed2 100644 --- a/DependencyInjection/JMSJobQueueExtension.php +++ b/DependencyInjection/JMSJobQueueExtension.php @@ -26,6 +26,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; +use Symfony\Component\Yaml\Yaml; /** * This is the class that loads and manages your bundle configuration @@ -72,5 +73,9 @@ public function prepend(ContainerBuilder $container) ) ) )); + + $config = Yaml::parse(file_get_contents(__DIR__ . '/../Resources/config/ezplatform.yaml')); + + $container->prependExtensionConfig('ibexa', $config); } } diff --git a/Resources/config/ezplatform.yaml b/Resources/config/ezplatform.yaml new file mode 100644 index 00000000..8d60cf7b --- /dev/null +++ b/Resources/config/ezplatform.yaml @@ -0,0 +1,7 @@ +orm: + entity_mappings: + JMSJobQueueBundle: + is_bundle: true + type: annotation + dir: Entity + prefix: JMS\JobQueueBundle\Entity