-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
useFetchFormat
in VideoTag
- Loading branch information
1 parent
e950063
commit 418519f
Showing
11 changed files
with
206 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* This file is part of the Cloudinary PHP package. | ||
* | ||
* (c) Cloudinary | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Cloudinary\Configuration; | ||
|
||
/** | ||
* Trait TagConfigTrait | ||
* | ||
* @api | ||
*/ | ||
trait TagConfigTrait | ||
{ | ||
|
||
/** | ||
* Image format of the video poster. | ||
* | ||
* @param string $format Image format. | ||
* | ||
* @return $this | ||
*/ | ||
public function videoPosterFormat($format) | ||
{ | ||
return $this->setTagConfig(TagConfig::VIDEO_POSTER_FORMAT, $format); | ||
} | ||
|
||
|
||
/** | ||
* Use fetch format transformation ("f_") instead of file extension. | ||
* | ||
* @param bool $useFetchFormat | ||
* | ||
* @return $this | ||
*/ | ||
public function useFetchFormat($useFetchFormat = true) | ||
{ | ||
return $this->setTagConfig(TagConfig::USE_FETCH_FORMAT, $useFetchFormat); | ||
} | ||
|
||
/** | ||
* Sets the Tag configuration key with the specified value. | ||
* | ||
* @param string $configKey The configuration key. | ||
* @param mixed $configValue THe configuration value. | ||
* | ||
* @return $this | ||
* | ||
* @internal | ||
*/ | ||
abstract public function setTagConfig($configKey, $configValue); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.