# UploadFileCommand

Extends \Symfony\Component\Console\Command\Command

Uploads a (media) file

author | Lukas Korinek
package | Default

### Methods

## __construct

    __construct(\Doctrine\ORM\EntityManagerInterface $em, \NPS\Factory\FileFactory $factory, \NPS\Repository\FileRepository $repo)

### Arguments

#### $em

`\Doctrine\ORM\EntityManagerInterface`

#### $factory

`\NPS\Factory\FileFactory`

#### $repo

`\NPS\Repository\FileRepository`

## configure

    configure()

inheritDoc |

## execute

    execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)

inheritDoc |

### Arguments

#### $input

`\Symfony\Component\Console\Input\InputInterface`

#### $output

`\Symfony\Component\Console\Output\OutputInterface`

### Properties

## factory

    factory : \NPS\Factory\FileFactory

var |

### Type(s)

`\NPS\Factory\FileFactory`

## repo

    repo : \NPS\Repository\FileRepository

var |

### Type(s)

`\NPS\Repository\FileRepository`

## em

    em : \Doctrine\ORM\EntityManagerInterface

var |

### Type(s)

`\Doctrine\ORM\EntityManagerInterface`