public function optimize (stdClass $data)
    {
        $data->formValidationName = $data->serviceName . 'Validator';
        $data->formValidationNameSpace = str_replace ('\\http\\controllers', '\\validators', $data->controllerNamespace);
        $data->formValidationDestination = str_replace ('/http/controllers', '/validators', $data->controllerDestination) . '/' . $data->formValidationName . '.php';

        if (isset($data->mainModel->multiLanguage)) {
            $data->formTranslationsValidationName = $data->serviceName . 'TranslationsValidator';
            $data->formTranslationsValidationDestination = str_replace ('/http/controllers', '/validators', $data->controllerDestination) . '/' . $data->formTranslationsValidationName . '.php';
        }

        return $data;
    }
public function optimize (stdClass $data)
    {
        $data->formValidationName = $data->serviceName . 'Validator';
        $data->formValidationNameSpace = str_replace ('\\http\\controllers', '\\validators', $data->controllerNamespace);
        $data->formValidationDestination = str_replace ('/http/controllers', '/validators', $data->controllerDestination) . '/' . $data->formValidationName . '.php';

        if (isset($data->mainModel->multiLanguage)) {
            $data->formTranslationsValidationName = $data->serviceName . 'TranslationsValidator';
            $data->formTranslationsValidationDestination = str_replace ('/http/controllers', '/validators', $data->controllerDestination) . '/' . $data->formTranslationsValidationName . '.php';
        }

        return $data;
    }
public function optimize ( stdClass $ data ) { $ data -> formValidationName = $ data -> serviceName . 'Validator' ; $ data -> formValidationNameSpace = str_replace ( '\\http\\controllers' , '\\validators' , $ data -> controllerNamespace ) ; $ data -> formValidationDestination = str_replace ( '/http/controllers' , '/validators' , $ data -> controllerDestination ) . '/' . $ data -> formValidationName . '.php' ; if ( isset ( $ data -> mainModel -> multiLanguage ) ) { $ data -> formTranslationsValidationName = $ data -> serviceName . 'TranslationsValidator' ; $ data -> formTranslationsValidationDestination = str_replace ( '/http/controllers' , '/validators' , $ data -> controllerDestination ) . '/' . $ data -> formTranslationsValidationName . '.php' ; } return $ data ; }
Optimizing configuration for form creation

@param stdClass $data
@return stdClass
Optimizing configuration for form creation