Skip to content

Commit

Permalink
Kernel is not registered in Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
lethak authored Oct 30, 2017
1 parent 4d10769 commit 5927b1f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function process(ContainerBuilder $container)

if ($class->implementsInterface('Symfony\Component\DependencyInjection\ContainerAwareInterface')) {
$container->setDefinition($serviceId, $definition)
->addMethodCall('setContainer', [new Reference('thruway_container')]);
//->addMethodCall('setContainer', [new Reference('thruway_container')]);
->addMethodCall('setContainer', [new Reference('service_container')]);
} else {
$container->setDefinition($serviceId, $definition);
}
Expand Down Expand Up @@ -111,4 +112,4 @@ private function getClassName($filename)
}
return $namespace . '\\' . $match[1];
}
}
}

0 comments on commit 5927b1f

Please sign in to comment.