Explorar o código

Fixed docs to use Driver\Gearman for annotations

orolin %!s(int64=11) %!d(string=hai) anos
pai
achega
d83b0554a8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Resources/docs/definition_workers.rst

+ 3 - 0
Resources/docs/definition_workers.rst

@@ -126,6 +126,8 @@ variable in Worker annotation.
 
     namespace Acme\AcmeBundle\Services;
 
+    use Mmoreram\GearmanBundle\Driver\Gearman;
+
     /**
      * @Gearman\Work(
      *     service="myServiceName"
@@ -178,6 +180,7 @@ To avoid needing to check the output is available, you can by default set it to
 
     use Symfony\Component\Console\Output\NullOutput;
     use Mmoreram\GearmanBundle\Command\Util\GearmanOutputAwareInterface;
+    use Mmoreram\GearmanBundle\Driver\Gearman;
 
     /**
      * @Gearman\Work(