@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | $di->setShared( |
49 | 49 | self::SERVICE_NAME, |
50 | - function () use ($prefix) { |
|
50 | + function() use ($prefix) { |
|
51 | 51 | $serializerFactory = new SerializerFactory(); |
52 | 52 | $adapterFactory = new AdapterFactory($serializerFactory); |
53 | 53 |
@@ -47,7 +47,8 @@ |
||
47 | 47 | } |
48 | 48 | $di->setShared( |
49 | 49 | self::SERVICE_NAME, |
50 | - function () use ($prefix) { |
|
50 | + function () use ($prefix) |
|
51 | + { |
|
51 | 52 | $serializerFactory = new SerializerFactory(); |
52 | 53 | $adapterFactory = new AdapterFactory($serializerFactory); |
53 | 54 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | $di->setShared( |
48 | 48 | self::SERVICE_NAME, |
49 | - function () use ($prefix){ |
|
49 | + function() use ($prefix){ |
|
50 | 50 | $serializerFactory = new SerializerFactory(); |
51 | 51 | $adapterFactory = new AdapterFactory($serializerFactory); |
52 | 52 |
@@ -46,7 +46,8 @@ |
||
46 | 46 | } |
47 | 47 | $di->setShared( |
48 | 48 | self::SERVICE_NAME, |
49 | - function () use ($prefix){ |
|
49 | + function () use ($prefix) |
|
50 | + { |
|
50 | 51 | $serializerFactory = new SerializerFactory(); |
51 | 52 | $adapterFactory = new AdapterFactory($serializerFactory); |
52 | 53 |
@@ -40,11 +40,11 @@ |
||
40 | 40 | { |
41 | 41 | $di->setShared( |
42 | 42 | self::SERVICE_NAME, |
43 | - function () { |
|
43 | + function() { |
|
44 | 44 | while (true) { |
45 | 45 | $pid = Util::getPidOfProcess('beanstalkd'); |
46 | 46 | if (empty($pid)) { |
47 | - Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...' . PHP_EOL); |
|
47 | + Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...'.PHP_EOL); |
|
48 | 48 | sleep(2); |
49 | 49 | } else { |
50 | 50 | $queue = new BeanstalkClient(WorkerModelsEvents::class); |
@@ -40,7 +40,8 @@ |
||
40 | 40 | { |
41 | 41 | $di->setShared( |
42 | 42 | self::SERVICE_NAME, |
43 | - function () { |
|
43 | + function () |
|
44 | + { |
|
44 | 45 | while (true) { |
45 | 46 | $pid = Util::getPidOfProcess('beanstalkd'); |
46 | 47 | if (empty($pid)) { |
@@ -34,11 +34,11 @@ |
||
34 | 34 | { |
35 | 35 | $di->setShared( |
36 | 36 | self::SERVICE_NAME, |
37 | - function () { |
|
37 | + function() { |
|
38 | 38 | while (true) { |
39 | 39 | $pid = Util::getPidOfProcess('beanstalkd'); |
40 | 40 | if (empty($pid)) { |
41 | - Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...' . PHP_EOL); |
|
41 | + Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...'.PHP_EOL); |
|
42 | 42 | sleep(2); |
43 | 43 | } else { |
44 | 44 | $queue = new BeanstalkClient(CacheCleanerPlugin::class); |
@@ -40,7 +40,8 @@ |
||
40 | 40 | { |
41 | 41 | $di->setShared( |
42 | 42 | self::SERVICE_NAME, |
43 | - function () { |
|
43 | + function () |
|
44 | + { |
|
44 | 45 | while (true) { |
45 | 46 | $pid = Util::getPidOfProcess('beanstalkd'); |
46 | 47 | if (empty($pid)) { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | while (true) { |
36 | 36 | $pid = Util::getPidOfProcess('beanstalkd'); |
37 | 37 | if (empty($pid)) { |
38 | - Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...' . PHP_EOL); |
|
38 | + Util::echoWithSyslog(' - Wait for start beanstalkd deamon ...'.PHP_EOL); |
|
39 | 39 | sleep(2); |
40 | 40 | } else { |
41 | 41 | break; |