Form/Builder.php
public function buildByRequest(Request $request)
    {
        foreach ($request->request->all() as $key => $parameters) {
            if (0 === strpos($key, 'dynamic_')) {
                $formNameParts = explode('dynamic_', $key, 2);
                $checksumCheck = $this->checksum->check(
                    $parameters['checksum'],
                    $parameters['type'],
                    $parameters['typeId'],
                    $parameters['formId'],
                    $parameters['formName']
                );

                if (!isset($formNameParts[1])) {
                    continue;
                }

                if (!$checksumCheck) {
                    throw new HttpException(400, 'SuluFormBundle: Checksum not valid!');
                }

                if (!isset($parameters['type'])
                    || !isset($parameters['formId'])
                    || !isset($parameters['formName'])
                    || !isset($parameters['typeId'])
                ) {
                    continue;
                }

                $locale = $request->getLocale();
                if (isset($parameters['locale'])) {
                    $locale = $parameters['locale'];
                }

                return $this->build(
                    $parameters['formId'],
                    $parameters['type'],
                    $parameters['typeId'],
                    $locale,
                    $parameters['formName']
                );
            }
        }

        return null;
    }
public function buildByRequest(Request $request)
    {
        foreach ($request->request->all() as $key => $parameters) {
            if (0 === strpos($key, 'dynamic_')) {
                $formNameParts = explode('dynamic_', $key, 2);
                $checksumCheck = $this->checksum->check(
                    $parameters['checksum'],
                    $parameters['type'],
                    $parameters['typeId'],
                    $parameters['formId'],
                    $parameters['formName']
                );

                if (!isset($formNameParts[1])) {
                    continue;
                }

                if (!$checksumCheck) {
                    throw new HttpException(400, 'SuluFormBundle: Checksum not valid!');
                }

                if (!isset($parameters['type'])
                    || !isset($parameters['formId'])
                    || !isset($parameters['formName'])
                    || !isset($parameters['typeId'])
                ) {
                    continue;
                }

                $locale = $request->getLocale();
                if (isset($parameters['locale'])) {
                    $locale = $parameters['locale'];
                }

                return $this->build(
                    $parameters['formId'],
                    $parameters['type'],
                    $parameters['typeId'],
                    $locale,
                    $parameters['formName']
                );
            }
        }

        return null;
    }
{@inheritdoc}