Przeglądaj źródła

Fixed docs to use Driver\Gearman for annotations

orolin 11 lat temu
rodzic
commit
d83b0554a8
1 zmienionych plików z 3 dodań i 0 usunięć
  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(