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); }
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); } }
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); }