Skip to content

Commit 7bf0c51

Browse files
authored
feat: remove opinionated configuration to allow either option
1 parent ef577ed commit 7bf0c51

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

DependencyInjection/MarkupJobQueueExtension.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ private function configureJobLogRepository(array $config, ContainerBuilder $cont
137137
private function configureConsoleDirectory(array $config, ContainerBuilder $container)
138138
{
139139
$parameter = 'markup_job_queue.console_dir';
140-
$isUsingSymfony4OrGreater = Kernel::MAJOR_VERSION === 4;
141-
if ($isUsingSymfony4OrGreater && $config['use_root_dir_for_symfony_console']) {
142-
throw new \Exception('The `use_root_dir_for_symfony_console` option cannot be used with Symfony 4+.');
143-
}
144140

145141
if ($config['use_root_dir_for_symfony_console']) {
146142
$container->setParameter($parameter, $container->getParameter('kernel.root_dir'));

0 commit comments

Comments
 (0)