protected function generateEmptyController($class)
 {
     $generator = new EmptyGenerator($this->base_path);
     list($admingenerated, $bundle, $baseController, $controllerName) = explode('\\', $class);
     $builder = new EmptyBuilderAction();
     $generator->addBuilder($builder);
     $builder->setOutputName($baseController . '/' . $controllerName . '.php');
     $builder->setVariables(array('controllerName' => $controllerName, 'bundle' => $bundle, 'base_controller' => $baseController));
     $generator->writeOnDisk($this->base_path . "/{$admingenerated}/{$bundle}");
 }
 /**
  * @param string $class
  */
 protected function generateEmptyController($class)
 {
     $generator = new EmptyGenerator($this->base_path);
     $parts = explode('\\', $class);
     $controllerName = $parts[count($parts) - 1];
     unset($parts[count($parts) - 1]);
     $namespace = implode('\\', $parts);
     $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $class);
     $builder = new EmptyBuilderAction();
     $generator->addBuilder($builder);
     $builder->setOutputName($fileName . '.php');
     $builder->setVariables(array('controllerName' => $controllerName, 'namespace' => $namespace, 'require_pk' => 'ListController' != $controllerName));
     $generator->writeOnDisk($this->base_path);
 }