コード例 #1
0
ファイル: EntityController.php プロジェクト: vukasins/dcp
 public function createEntityAction()
 {
     $request = $this->getRequest();
     $table = $request->getParam('table');
     $savePath = $request->getParam('path');
     $namespace = $request->getParam('namespace');
     $this->createEntityService->create($table, $savePath, $namespace);
     $this->console->write(Util::format("Done, entity is created from {$table}!"), Color::GREEN);
 }
コード例 #2
0
ファイル: ModuleController.php プロジェクト: vukasins/dcp
 public function removeModuleAction()
 {
     try {
         $request = $this->getRequest();
         $module = $request->getParam('module');
         $this->createModuleService->remove($module);
         $this->console->write(Util::format("Module {$module} is removed!"), Color::GREEN);
     } catch (Exception $e) {
         $this->console->write(Util::format($e->getMessage()), Color::RED);
     }
 }
コード例 #3
0
ファイル: MapperController.php プロジェクト: vukasins/dcp
 public function createMapperAction()
 {
     /**
      * CreateMapperService constructor.
      * @param $tableName
      * @param $parentClassName
      * @param $mapperName
      * @param $namespace
      * @param $path
      */
     $request = $this->getRequest();
     $tableName = $request->getParam('table');
     $parent = $request->getParam('parent');
     $mapper = $request->getParam('mapper');
     $namespace = $request->getParam('namespace');
     $path = $request->getParam('path');
     $this->createMapperService->create($tableName, $parent, $mapper, $namespace, $path);
     $this->console->write(Util::format('Mapper is created!'), Color::GREEN);
 }