Ojs\CoreBundle\Command\InstitutionSamplesCommand::getInstitutionsFromFile PHP Метод

getInstitutionsFromFile() приватный Метод

private getInstitutionsFromFile ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    private function getInstitutionsFromFile(InputInterface $input, OutputInterface $output)
    {
        $filePath = $input->getArgument('filePath');
        if (!file_exists($filePath)) {
            throw new \InvalidArgumentException('Couldn\'t find the file!');
        }
        $file = fopen($filePath, "r");
        $getCsv = fgetcsv($file, 0, ',');
        return $getCsv;
    }