Add Silex FFMpegServiceProvider
This commit is contained in:
parent
d98dabe9c3
commit
20a3c21d82
3 changed files with 122 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ abstract class Binary implements AdapterInterface
|
|||
*/
|
||||
public function __construct($binary, Logger $logger)
|
||||
{
|
||||
if (!is_executable($binary)) {
|
||||
throw new \FFMpeg\Exception\BinaryNotFoundException(sprintf('`%s` is not a valid binary', $binary));
|
||||
}
|
||||
|
||||
$this->binary = $binary;
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue