public function __construct($identifier = 'original')
 {
     parent::__construct(function (File $file) {
         return true;
     });
     $this->identifier = $identifier;
 }
Exemple #2
0
 public function __construct($apiKey, $awsBucket, S3Client $client, $outputs = array())
 {
     parent::__construct(function (File $file) {
         return (bool) preg_match("/^video/", $file->getMimetype());
     });
     $this->apiKey = $apiKey;
     $this->client = $client;
     $this->awsBucket = $awsBucket;
     $this->setOutputs($outputs);
 }