code: public function generate(BundleInterface $bundle, $entity, ClassMetadataInfo $metadata, $format, $routePrefix, $needWriteActions, $forceOverwrite)
      {
          parent::generate($bundle, $entity, $metadata, $format, $routePrefix, $needWriteActions, $forceOverwrite);
          if($this->getOption('with_kanban')){
              $dir = sprintf('%s/Resources/views/%s', $this->bundle->getPath(), str_replace('\\', '/', $this->entity));
              $this->generateKanbanView($dir);
          }
  
      }
docs: Generate the CRUD controller.
  
  @param BundleInterface   $bundle           A bundle object
  @param string            $entity           The entity relative class name
  @param ClassMetadataInfo $metadata         The entity class metadata
  @param string            $format           The configuration format (xml, yaml, annotation)
  @param string            $routePrefix      The route name prefix
  @param array             $needWriteActions Wether or not to generate write actions
  
  @throws \RuntimeException