Add Silex FFMpegServiceProvider

This commit is contained in:
Romain Neutron 2012-09-03 14:52:53 +02:00
commit 20a3c21d82
3 changed files with 122 additions and 0 deletions

View file

@ -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;
}