Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Mikaël DELSOL mikaelcom

🌴
On vacation
View GitHub Profile
View FormBuilder.php
<?php
declare(strict_types=1);
namespace App\Form;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Form\Exception\InvalidArgumentException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\FormBuilder as BaseFormBuilder;
View Controller.php
<?php
class SomeClass
{
public function someMethod()
{
$parametersFieldsForm = $form->create('parameters', null, [
'compound' => true,
'translation_domain' => false,
]);
foreach ($parameters as $parameter) {
@mikaelcom
mikaelcom / part_of_the_generated_form.html
Last active Jun 29, 2017
Usage of Cyrillic names into a Symfony Form
View part_of_the_generated_form.html
<div id="form_parameters_parameters_request_order_shipper_address_КонтактнаяИнформация">
<div class="form-group">
<label class="control-label" for="form_parameters_parameters_request_order_shipper_address_КонтактнаяИнформация_Комментарий">Комментарий</label>
<input type="text" id="form_parameters_parameters_request_order_shipper_address_КонтактнаяИнформация_Комментарий" name="form[parameters][parameters][request][order][shipper][address][КонтактнаяИнформация][Комментарий]" placeholder="string" title="string" class="form-control">
</div>
<div class="form-group">
<label class="control-label" for="form_parameters_parameters_request_order_shipper_address_КонтактнаяИнформация_Состав">Состав</label>
<div class="load-struct-details">
<div class="load-abstract form-group">
<select id="form_parameters_parameters_request_order_shipper_address_КонтактнаяИнформация_Состав" name="form[parameters][parameters][request][order][shipper][address][Контактна
View TravelportSoapClient.php
<?php
/**
* File containing the overriding class for the SoapClient used in the WsdlClass class
* @package Travelport
* @subpackage Structs
* @author WsdlToPhp Team <contact@wsdltophp.com>
* @date 17-02-2014
*/
/**
* Class that overrides the native SoapClient in order to modify its behavior especially before sending the request
You can’t perform that action at this time.