1 | <?php |
||
24 | class UploadVideoCommand extends CloudCommand |
||
25 | { |
||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | 7 | protected function configure() |
|
30 | { |
||
31 | 7 | $this->setName('panda:video:upload'); |
|
32 | 7 | $this->setDescription('Upload a video'); |
|
33 | 7 | $this->addOption( |
|
34 | 7 | 'profile', |
|
35 | 7 | null, |
|
36 | 7 | InputOption::VALUE_REQUIRED|InputOption::VALUE_IS_ARRAY, |
|
37 | 7 | 'A profile to be used to encode the video, use it several times to use more than one profile' |
|
38 | ); |
||
39 | 7 | $this->addOption( |
|
40 | 7 | 'path-format', |
|
41 | 7 | null, |
|
42 | 7 | InputOption::VALUE_REQUIRED, |
|
43 | 7 | 'Custom path format' |
|
44 | ); |
||
45 | 7 | $this->addOption( |
|
46 | 7 | 'payload', |
|
47 | 7 | null, |
|
48 | 7 | InputOption::VALUE_REQUIRED, |
|
49 | 7 | 'An arbitrary string stored with the video' |
|
50 | ); |
||
51 | 7 | $this->addArgument( |
|
52 | 7 | 'filename', |
|
53 | 7 | InputArgument::REQUIRED, |
|
54 | 7 | 'The file being uploaded' |
|
55 | ); |
||
56 | |||
57 | 7 | parent::configure(); |
|
58 | 7 | } |
|
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | 6 | protected function doExecuteCommand(InputInterface $input, OutputInterface $output) |
|
78 | } |
||
79 |