private function createMultiLanguageController(stdClass $data)
    {
        $this->createFileFromTemplate([
            "destination"         => $data->controllerDestination,
            "templateDestination" => __DIR__ . '/../templates/service/controller/multiLanguage.hctpl',
            "content"             => [
                "namespace"                      => $data->controllerNamespace,
                "controllerName"                 => $data->controllerName,
                "acl_prefix"                     => $data->aclPrefix,
                "serviceURL"                     => $data->serviceURL,
                "translationsLocation"           => $data->translationsLocation,
                "serviceNameDotted"              => $this->stringWithDash($data->translationFilePrefix),
                "controllerNameDotted"           => $data->serviceRouteName,
                "adminListHeader"                => $this->getAdminListHeader($data),
                "formValidationName"             => $data->formValidationName,
                "translationsFormValidationName" => $data->formTranslationsValidationName,
                "functions"                      => replaceBrackets(file_get_contents(__DIR__ . '/../templates/service/controller/multilanguage/functions.hctpl'),
                    [
                        "modelName"      => $data->mainModel->modelName,
                        "modelNameSpace" => $data->modelNamespace,
                    ]),
                "inputData"                      => $this->getInputData($data),
                "useFiles"                       => $this->getUseFiles($data, true),
                "mainModelName"                  => $data->mainModel->modelName,
                "searchableFields"               => $this->getSearchableFields($data),
                "searchableFieldsTranslations"   => $this->getSearchableFields($data, true),
            ],
        ]);

        return $data->controllerDestination;
    }
private function createMultiLanguageController(stdClass $data)
    {
        $this->createFileFromTemplate([
            "destination"         => $data->controllerDestination,
            "templateDestination" => __DIR__ . '/../templates/service/controller/multiLanguage.hctpl',
            "content"             => [
                "namespace"                      => $data->controllerNamespace,
                "controllerName"                 => $data->controllerName,
                "acl_prefix"                     => $data->aclPrefix,
                "serviceURL"                     => $data->serviceURL,
                "translationsLocation"           => $data->translationsLocation,
                "serviceNameDotted"              => $this->stringWithDash($data->translationFilePrefix),
                "controllerNameDotted"           => $data->serviceRouteName,
                "adminListHeader"                => $this->getAdminListHeader($data),
                "formValidationName"             => $data->formValidationName,
                "translationsFormValidationName" => $data->formTranslationsValidationName,
                "functions"                      => replaceBrackets(file_get_contents(__DIR__ . '/../templates/service/controller/multilanguage/functions.hctpl'),
                    [
                        "modelName"      => $data->mainModel->modelName,
                        "modelNameSpace" => $data->modelNamespace,
                    ]),
                "inputData"                      => $this->getInputData($data),
                "useFiles"                       => $this->getUseFiles($data, true),
                "mainModelName"                  => $data->mainModel->modelName,
                "searchableFields"               => $this->getSearchableFields($data),
                "searchableFieldsTranslations"   => $this->getSearchableFields($data, true),
            ],
        ]);

        return $data->controllerDestination;
    }
private function createMultiLanguageController ( stdClass $ data ) { $ this -> createFileFromTemplate ( [ "destination" => $ data -> controllerDestination , "templateDestination" => __DIR__ . '/../templates/service/controller/multiLanguage.hctpl' , "content" => [ "namespace" => $ data -> controllerNamespace , "controllerName" => $ data -> controllerName , "acl_prefix" => $ data -> aclPrefix , "serviceURL" => $ data -> serviceURL , "translationsLocation" => $ data -> translationsLocation , "serviceNameDotted" => $ this -> stringWithDash ( $ data -> translationFilePrefix ) , "controllerNameDotted" => $ data -> serviceRouteName , "adminListHeader" => $ this -> getAdminListHeader ( $ data ) , "formValidationName" => $ data -> formValidationName , "translationsFormValidationName" => $ data -> formTranslationsValidationName , "functions" => replaceBrackets ( file_get_contents ( __DIR__ . '/../templates/service/controller/multilanguage/functions.hctpl' ) , [ "modelName" => $ data -> mainModel -> modelName , "modelNameSpace" => $ data -> modelNamespace , ] ) , "inputData" => $ this -> getInputData ( $ data ) , "useFiles" => $ this -> getUseFiles ( $ data , true ) , "mainModelName" => $ data -> mainModel -> modelName , "searchableFields" => $ this -> getSearchableFields ( $ data ) , "searchableFieldsTranslations" => $ this -> getSearchableFields ( $ data , true ) , ] , ] ) ; return $ data -> controllerDestination ; }
Creating multi language controller

@param stdClass $data
Creating multi language controller