Create the controller

@param  string $name
@return bool
180254
protected function appendRoutes( $name = '' )
  {
    $app = app();
    $routes_file = $this->laravel->path.'/http/routes.php';
    $workflow_routes = $app['view']->make('workflow::generators.routes')
      ->with('name', $name)
      ->render();

    if( file_exists( $routes_file ) )
    {
      $fs = fopen($routes_file, 'a');
      if ( $fs )
      {
        fwrite($fs, $workflow_routes);
        $this->line($workflow_routes);
        fclose($fs);
        return true;
      }
      else
      {
        return false;
      }
    }
    else
    {
      return false;
    }
  }
682978
protected function buildClass($name)
    {
        $controllerNamespace = $this->getNamespace($name);

        $replace = [];

        if ($this->option('parent')) {
            $replace['DummyFullParentClass'] = $controllerNamespace.'Controller';
            $replace['DummyParentClass'] = class_basename($controllerNamespace.'Controller');
            $replace['parent_dummy_view'] = $this->getParentViewName($name);
            $replace['parent_dummy_route'] = $this->getParentRouteName($name);
        }
        $replace['dummy_view'] = $this->getViewName($name);
        $replace['dummy_route'] = $this->getRouteName($name);

        return str_replace(array_keys($replace), array_values($replace), parent::buildClass($name));
    }
971914
public function createAction($name)
    {
        if (!$this->actions->containsKey($name)) {
            throw new \InvalidArgumentException(sprintf(
                'Any action registered under "%s" name, only ["%s"] are.',
                $name,
                implode('","', $this->actions->getKeys())
            ));
        }

        return clone $this->actions->get($name);
    }
774250
public function createRole($name) {
		$result = $this->repository->createRole($name);
		$this->domain->const->generateRoles();
		return $result;
	}
826801
public function initController($controller, $path)
    {
        if($path)
        {
            $controller = $this->name . '\\Controller\\' . $path . '\\' . $controller;
        }
        else
        {
            $controller = $this->name . '\\Controller\\' . $controller;
        }

        return new $controller();
    }
734842
public function getView($name)
    {
        if (!isset(self::$_controllers['view.'.$name])) {
            $view = $this->getController($name)->setView($name)->getView();
            self::$_controllers['view.'.$name] = $view;
        }

        return self::$_controllers['view.'.$name];
    }
504487
protected function makeController($controller)
    {
        Controller::setRouter($this->router);

        $controller = $this->container->make($controller);

        if ( ! $controller instanceof AdminPageController)
        {
            if ($this->container->isShared('post'))
            {
                $controller->setPost($this->container['post']);
            }

            $controller->setQuery($this->container['query']);
        }

        if (method_exists($controller, 'boot'))
        {
            $this->container->call([$controller, 'boot']);
        }

        return $controller;
    }
1060475
public function createController(InputInterface $input, OutputInterface $output)
    {
        $controller = $this->getApplication()->find('create:controller');
        $controller_arguments = array(
            'command'   => 'create:model',
            'module'    => $input->getArgument('module'),
            'table'     => $input->getArgument('table'),
            'column'    => $input->getArgument('column')
        );
        $input_controller   = new ArrayInput($controller_arguments);
        $return_controller  = $controller->run($input_controller,$output);
        return $output->writeln($return_controller);
    }
148194
public function create(string $name, string $request)
    {
        return $this->curl->post($this->base_url.'/create?'.http_build_query([
                    'name' => $name,
                ]
            ), $request
        );
    }
1369928
public static function create( $path ) 
	{
		$class = static::find( $path );
		
		// if class already loaded
		if ( !class_exists( $class, false ) ) 
		{
			// register the controller with the autoloader
			\CCFinder::bind( $class, CCPath::get( $path, CCDIR_CONTROLLER, 'Controller'.EXT ) );
		}
		
		// create new controller instance and assign the name
		$controller = new $class;
		$controller->name = $path;
		
		return $controller;
	}
1092465
protected function buildClass($name){
        $controllerNamespace = $this->getNamespace($name);
        $replace = [
            'DummyContract' => $this->getNameInput(),
        ];
        //dd($replace);
        return str_replace(
            array_keys($replace), array_values($replace), parent::buildClass($name)
        );
    }
134572
public static function create($name) {
		$name = static::slug($name);
		static::$hooks[$name] = new static($name);
		return self::$hooks[$name];
	}
683638
public function create($name)
    {
        $this->checkName($name);

        $configuration = new Configuration();

        $configuration->setName($name);

        $configuration->setModel($this->getParameter($name, 'model'));
        $configuration->setForm($this->getParameter($name, 'form'));
        $configuration->setFormTemplate($this->getParameter($name, 'template.form'));
        $configuration->setRecipientTemplate($this->getParameter($name, 'template.recipient'));
        $configuration->setRecipient($this->getParameter($name, 'recipient'));
        $configuration->setConfirmTemplate($this->getParameter($name, 'template.confirm'));
        $configuration->setPageTemplate($this->getParameter($name, 'template.page'));
        $configuration->setFrom($this->getParameter($name, 'from'));
        $configuration->setSenderName($this->getParameter($name, 'sender_name'));
        $configuration->setSubject($this->getParameter($name, 'subject'));
        $configuration->setTranslationDomain($this->getParameter($name, 'translation_domain'));
        $configuration->setConfirmMail($this->getParameter($name, 'confirm_mail'));

        return $configuration;
    }
1334081
public function createServer($name)
    {
        $server = new Server();
        if (in_array($name, $this->getKnownServers())) {
            $server
                ->setChecker(new Checker())
                ->setStartMultiLine($this->servers[$name]['directives']['start_multiline'])
                ->setEndMultiLine($this->servers[$name]['directives']['end_multiline'])
                ->setSimpleDirective($this->servers[$name]['directives']['simple'])
                ->setBinaries($this->servers[$name]['controlers'])
                ->setDetectionParameter($this->servers[$name]['switch']['detect'])
                ->setBeforeMethods($this->servers[$name]['parser']['before'])
                ->setAfterMethods($this->servers[$name]['parser']['after'])
                ->setDumperSimpleDirective($this->servers[$name]['dumper']['simple'])
                ->setDumperStartDirective($this->servers[$name]['dumper']['start_multiline'])
                ->setDumperEndDirective($this->servers[$name]['dumper']['end_multiline'])
                ->setKnownDirectives($this->servers[$name]['known_directives'])
            ;
        }

        return $server;
    }
997929
public function createDb($name)
    {
        $sql = $this->query->createDb($name);
        $this->db->exec($sql);

        return true;
    }
408322
protected function createMenuDriver(string $name): Handlers\Menu
    {
        $config = $this->app->make('config')->get("orchestra/widget::menu.{$name}", []);

        return new Handlers\Menu($name, $config);
    }
283973
public function createDb($name)
    {
        if (isset($name) && !empty(trim($name))) {
            $sql = "CREATE DATABASE IF NOT EXISTS `{$name}`";

            return $sql;
        } else {
            return false;
        }
    }