Skip to content

Instantly share code, notes, and snippets.

View mikaelcom's full-sized avatar
🏠
Working from home

Mikaël DELSOL mikaelcom

🏠
Working from home
View GitHub Profile
@mikaelcom
mikaelcom / TravelportSoapClient.php
Created March 6, 2014 14:55
Travelport SoapClient
<?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
@mikaelcom
mikaelcom / part_of_the_generated_form.html
Last active June 29, 2017 14:52
Usage of Cyrillic names into a Symfony Form
<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][Контактна
<?php
class SomeClass
{
public function someMethod()
{
$parametersFieldsForm = $form->create('parameters', null, [
'compound' => true,
'translation_domain' => false,
]);
foreach ($parameters as $parameter) {
<?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;
@mikaelcom
mikaelcom / NewsRequest.php
Created August 17, 2023 19:49
Bing Structs
<?php
declare(strict_types=1);
namespace StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**