@@ -96,7 +96,7 @@ |
||
| 96 | 96 | |
| 97 | 97 | $this->eventDispatcher->addListener( |
| 98 | 98 | KernelEvents::TERMINATE, |
| 99 | - function () use ($mapping, $media) { |
|
| 99 | + function() use ($mapping, $media) { |
|
| 100 | 100 | $this->generateCache($media); |
| 101 | 101 | } |
| 102 | 102 | ); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $pathWebP = $this->projectDir.'/public/'.$media->getRelativeDir().'/'.$filter.'/'.$media->getSlug().'.webp'; |
| 119 | 119 | $webPConverterOptions = self::$webPConverterOptions; |
| 120 | 120 | |
| 121 | - $this->pool->add(function () use ($projectDir, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
| 121 | + $this->pool->add(function() use ($projectDir, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
| 122 | 122 | // took 46s (vs 43s) to add liip generation in async |
| 123 | 123 | //exec($projectDir.'/bin/console liip:imagine:cache:resolve "'.$path.'" --force --filter='.$filter |
| 124 | 124 | //.' >/dev/null 2>&1 &'); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $source = $this->projectDir.$media->getPath(); |
| 133 | 133 | //self::createWebPStatic($destination, $source); |
| 134 | 134 | |
| 135 | - $this->pool->add(function () use ($destination, $source) { |
|
| 135 | + $this->pool->add(function() use ($destination, $source) { |
|
| 136 | 136 | self::createWebPStatic($destination, $source); |
| 137 | 137 | }); |
| 138 | 138 | } |