PartKeepr\SetupBundle\Command\ImportSiPrefixesCommand::execute PHP Method

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $return = $this->getContainer()->get('partkeepr.setup.si_prefix_service')->importSiPrefixes();
        $output->writeln(sprintf('%d SI prefixes imported, %d existing SI Prefixes updated', $return['imported'], $return['updated']));
    }
ImportSiPrefixesCommand