@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $webPConverterOptions = self::$webPConverterOptions; |
| 114 | 114 | $projectDir = $this->projectDir; |
| 115 | 115 | |
| 116 | - $this->pool->add(function () use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
| 116 | + $this->pool->add(function() use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
| 117 | 117 | // took 46s (vs 43s) to add liip generation in async |
| 118 | 118 | //exec($projectDir.'/bin/console liip:imagine:cache:resolve "'.$path.'" --force --filter='.$filter |
| 119 | 119 | //.' >/dev/null 2>&1 &'); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $source = $this->projectDir.$media->getPath(); |
| 128 | 128 | //self::createWebPStatic($destination, $source); |
| 129 | 129 | |
| 130 | - $this->pool->add(function () use ($destination, $source) { |
|
| 130 | + $this->pool->add(function() use ($destination, $source) { |
|
| 131 | 131 | self::createWebPStatic($destination, $source); |
| 132 | 132 | }); |
| 133 | 133 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | $this->eventDispatcher->addListener( |
| 103 | 103 | KernelEvents::TERMINATE, |
| 104 | - function (EventDispatcher $event) use ($mapping, $media) { |
|
| 104 | + function(EventDispatcher $event) use ($mapping, $media) { |
|
| 105 | 105 | $this->generateCache($media); |
| 106 | 106 | } |
| 107 | 107 | ); |