Explorar el Código

Fixed docs to use Driver\Gearman for annotations

orolin hace 11 años
padre
commit
d83b0554a8
Se han modificado 1 ficheros con 3 adiciones y 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(