Skip to content

Commit

Permalink
fix compiler pass loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mmucklo committed Dec 31, 2019
1 parent eed17c4 commit 513fea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/GridCompilerPass.php
Expand Up @@ -17,7 +17,7 @@ public function process(ContainerBuilder $container)
$defaultManagerType = $container->getParameter('dtc_queue.manager.job');
$runManagerType = $container->getParameter($this->getRunManagerType($container));
if ($defaultManagerType === 'orm' || $runManagerType === 'orm' || $defaultManagerType === 'odm' || $runManagerType === 'odm') {
$filename =__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'dtc_grid.yaml';
$filename =__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'dtc_grid.yaml';
$cacheDir = $container->getParameter('kernel.cache_dir');
if (class_exists('Dtc\GridBundle\Grid\Source\ColumnSource')) {
\Dtc\GridBundle\Grid\Source\ColumnSource::cacheClassesFromFile($cacheDir, $filename);
Expand Down
2 changes: 2 additions & 0 deletions DtcQueueBundle.php
Expand Up @@ -3,6 +3,7 @@
namespace Dtc\QueueBundle;

use Dtc\QueueBundle\DependencyInjection\Compiler\BeanstalkdCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\GridCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RabbitMQCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\RedisCompilerPass;
use Dtc\QueueBundle\DependencyInjection\Compiler\WorkerCompilerPass;
Expand All @@ -18,5 +19,6 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new RabbitMQCompilerPass());
$container->addCompilerPass(new BeanstalkdCompilerPass());
$container->addCompilerPass(new RedisCompilerPass());
$container->addCompilerPass(new GridCompilerPass());
}
}

0 comments on commit 513fea9

Please sign in to comment.