Skip to content

Commit

Permalink
Add Conditionable to Conversion (#3162)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwelch committed Mar 6, 2023
1 parent 4318bda commit a992f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -27,6 +27,7 @@
"ext-fileinfo": "*",
"ext-json": "*",
"illuminate/bus": "^9.18|^10.0",
"illuminate/conditionable": "9.18|^10.0",
"illuminate/console": "^9.18|^10.0",
"illuminate/database": "^9.18|^10.0",
"illuminate/pipeline": "^9.18|^10.0",
Expand Down
3 changes: 3 additions & 0 deletions src/Conversions/Conversion.php
Expand Up @@ -3,13 +3,16 @@
namespace Spatie\MediaLibrary\Conversions;

use BadMethodCallException;
use Illuminate\Support\Traits\Conditionable;
use Spatie\Image\Manipulations;
use Spatie\MediaLibrary\MediaCollections\Models\Media;
use Spatie\MediaLibrary\Support\FileNamer\FileNamer;

/** @mixin \Spatie\Image\Manipulations */
class Conversion
{
use Conditionable;

protected FileNamer $fileNamer;

protected float $extractVideoFrameAtSecond = 0;
Expand Down

0 comments on commit a992f25

Please sign in to comment.