JansenFelipe\OMR\Commands\ScanCommand::execute PHP Метод

execute() защищенный Метод

protected 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
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $imagePath = $input->getArgument('imageJPG');
        $mapJsonPath = $input->getArgument('mapJSON');
        $debug = $input->getOption('debug');
        /*
         * Setup scanner
         */
        $scanner = new ImagickScanner();
        $scanner->setDebug($debug);
        $scanner->setImagePath($imagePath);
        /*
         * Setup map
         */
        $map = MapJson::create($mapJsonPath);
        /*
         * Scan
         */
        $result = $scanner->scan($map, 28);
    }