Explorar o código

Changed default method value to doNormal

* Also updated documentation
* Suggested by Ben Meynell
Marc %!s(int64=12) %!d(string=hai) anos
pai
achega
7e4ccef00c
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  1. 1 1
      DependencyInjection/Configuration.php
  2. 5 4
      README.md

+ 1 - 1
DependencyInjection/Configuration.php

@@ -75,7 +75,7 @@ class Configuration implements ConfigurationInterface
                             ->defaultValue(150)
                         ->end()
                         ->scalarNode('method')
-                            ->defaultValue('do')
+                            ->defaultValue('doNormal')
                         ->end()
                     ->end()
                 ->end()

+ 5 - 4
README.md

@@ -135,13 +135,14 @@ Also we must config gearman cache, using doctrine cache.
         defaults:
 
             # default method related with all jobs
-            # do
+            # do // deprecated as of pecl/gearman 1.0.0. Use doNormal 
+            # doNormal
             # doBackground
             # doHigh
             # doHighBackground
             # doLow
             # doLowBackground
-            method: do
+            method: doNormal
 
             # Default number of executions before job dies.
             # If annotations defined, will be overwritten
@@ -189,7 +190,7 @@ Job annotations always overwrite work annotations, and work annotations always o
      * @Gearman\Work(
      *     iterations = 3, 
      *     description = "Worker test description",
-     *     defaultMethod = "do",
+     *     defaultMethod = "doBackground",
      *     servers = {
      *         { "host": "192.168.1.1", "port": 4560 },
      *         { "host": "192.168.1.2", "port": 4560 }, 
@@ -244,7 +245,7 @@ Job annotations always overwrite work annotations, and work annotations always o
      *     name = "MyAcmeWorker",
      *     iterations = 3, 
      *     description = "Acme Worker. Containing multiple available jobs",
-     *     defaultMethod = "do",
+     *     defaultMethod = "doHigh",
      *     servers = {
      *         { "host": "192.168.1.1", "port": 4560 },
      *         { "host": "192.168.1.2", "port": 4560 },