src/Command/Generate/ScaffoldCommand.php
public function verify(InputInterface $input, OutputInterface $output) : void
    {
        $model = $input->getArgument('model');
        $module = $input->getArgument('module');

        $modelPath = $this->getApplication()->getModelPath($model);
        $modulePath = $this->getApplication()->getModulePath($module);

        $paths = [
            $modelPath . DS . 'Crud.php',
            $modelPath . DS . 'Grid.php',
            $modelPath . DS . 'Row.php',
            $modelPath . DS . 'Table.php',
            $modulePath . DS . 'controllers' . DS . 'crud.php',
            $modulePath . DS . 'controllers' . DS . 'grid.php',
            $modulePath . DS . 'views' . DS . 'crud.phtml',
            $modulePath . DS . 'views' . DS . 'grid.phtml',
        ];

        foreach ($paths as $path) {
            if (!$this->getFs()->exists($path)) {
                throw new GeneratorException("File `$path` is not exists");
            }
        }

        $this->write("Scaffolding for <info>{$model}</info> has been successfully created.");
    }
public function verify(InputInterface $input, OutputInterface $output) : void
    {
        $model = $input->getArgument('model');
        $module = $input->getArgument('module');

        $modelPath = $this->getApplication()->getModelPath($model);
        $modulePath = $this->getApplication()->getModulePath($module);

        $paths = [
            $modelPath . DS . 'Crud.php',
            $modelPath . DS . 'Grid.php',
            $modelPath . DS . 'Row.php',
            $modelPath . DS . 'Table.php',
            $modulePath . DS . 'controllers' . DS . 'crud.php',
            $modulePath . DS . 'controllers' . DS . 'grid.php',
            $modulePath . DS . 'views' . DS . 'crud.phtml',
            $modulePath . DS . 'views' . DS . 'grid.phtml',
        ];

        foreach ($paths as $path) {
            if (!$this->getFs()->exists($path)) {
                throw new GeneratorException("File `$path` is not exists");
            }
        }

        $this->write("Scaffolding for <info>{$model}</info> has been successfully created.");
    }
{@inheritdoc}

@throws GeneratorException