protected function handleExistingFile(TypeGenerator $generator, Type $type, $path)
{
$this->output->write(sprintf('Type %s exists. Trying to patch ...', $type->getName()));
$patched = $this->patchExistingFile($generator, $type, $path);
if ($patched) {
$this->output->writeln('Patched!');
return true;
}
$this->output->writeln('Could not patch.');
return false;
}