send message from cli through ovh if configured

This commit is contained in:
2022-06-13 21:39:29 +02:00
parent 616be5cc8a
commit 4c0fef4f44
19 changed files with 540 additions and 57 deletions

View File

@@ -199,6 +199,8 @@ class ChillMainExtension extends Extension implements
$loader->load('services/short_message.yaml');
$this->configureCruds($container, $config['cruds'], $config['apis'], $loader);
$container->setParameter('chill_main.short_messages', $config['short_messages']);
//$this->configureSms($config['short_messages'], $container, $loader);
}
public function prepend(ContainerBuilder $container)
@@ -314,6 +316,13 @@ class ChillMainExtension extends Extension implements
// Note: the controller are loaded inside compiler pass
}
protected function configureSms(array $config, ContainerBuilder $container, Loader\YamlFileLoader $loader): void
{
$dsn = parse_url($config['dsn']);
dump($dsn);
}
protected function prependCruds(ContainerBuilder $container)
{
$container->prependExtensionConfig('chill_main', [