src/Kunstmaan/MediaBundle/Helper/Imagine/CacheManager.php 1 location
|
@@ 74-82 (lines=9) @@
|
| 71 |
|
* |
| 72 |
|
* @return string |
| 73 |
|
*/ |
| 74 |
|
private function changeFileExtension($path, $format) |
| 75 |
|
{ |
| 76 |
|
if (!$format) { |
| 77 |
|
return $path; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
$info = pathinfo($path); |
| 81 |
|
|
| 82 |
|
return $info['dirname'] . DIRECTORY_SEPARATOR . $info['filename'] . '.' . $format; |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
|
src/Kunstmaan/MediaBundle/Helper/Imagine/WebPathResolver.php 1 location
|
@@ 64-74 (lines=11) @@
|
| 61 |
|
* |
| 62 |
|
* @return string |
| 63 |
|
*/ |
| 64 |
|
private function changeFileExtension($path, $format) |
| 65 |
|
{ |
| 66 |
|
if (!$format) { |
| 67 |
|
return $path; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
$info = pathinfo($path); |
| 71 |
|
$path = $info['dirname'] . DIRECTORY_SEPARATOR . $info['filename'] . '.' . $format; |
| 72 |
|
|
| 73 |
|
return $path; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* Copy from \Liip\ImagineBundle\Imagine\Cache\Resolver\WebPathResolver::getFullPath |