|
@@ -169,10 +169,10 @@ And have this service defined in your dependency injection definition file
|
|
Console output from workers
|
|
Console output from workers
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-If you need your worker to output information to the console, you can have your worker class implement `Mmoreram\GearmanBundle\Command\Util\GearmanOutputAwareInterface`.
|
|
|
|
|
|
+If you need your worker to output information to the console, you can have your worker class implement `Mmoreram\\GearmanBundle\\Command\\Util\\GearmanOutputAwareInterface`.
|
|
|
|
|
|
This interface requires a single method be implemented `public function setOutput(OutputInterface $output);`.
|
|
This interface requires a single method be implemented `public function setOutput(OutputInterface $output);`.
|
|
-To avoid needing to check the output is available, you can by default set it to an instance of `Symfony\Component\Console\Output\NullOutput`.
|
|
|
|
|
|
+To avoid needing to check the output is available, you can by default set it to an instance of `Symfony\\Component\\Console\\Output\NullOutput`.
|
|
|
|
|
|
.. code-block:: php
|
|
.. code-block:: php
|
|
|
|
|