services:
Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler:
class: Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler
arguments:
- 'http://elasticsearch:9200'
services:
Psr\Log\NullLogger:
class: Psr\Log\NullLogger
'http_client_without_logs':
class: Symfony\Component\HttpClient\CurlHttpClient
calls:
- [setLogger, ['@Psr\Log\NullLogger']]
Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler:
class: Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler
arguments:
- 'http://elasticsearch:9200'
- 'monolog'
- '@http_client_without_logs'
$serializer = SerializerBuilder::create()
->setSerializationContextFactory(function () {
return \JMS\Serializer\SerializationContext::create()
->setSerializeNull(true)
;
})
->setDeserializationContextFactory(function () {
return \JMS\Serializer\DeserializationContext::create()
->setSerializeNull(true)
;
})
->setAnnotationReader($annotationReader)
->setPropertyNamingStrategy(new SerializedNameImportantThanPropertyNameStrategy())
->build();
$class = new \ReflectionClass($serializer);
$property = $class->getProperty('navigator');
$property->setAccessible(true);
$navigator = $property->getValue($serializer);
$class = new \ReflectionClass($navigator);
$property = $class->getProperty('metadataFactory');
$property->setAccessible(true);
$metadataFactory = $property->getValue($navigator);
$class = new \ReflectionClass($metadataFactory);
$property = $class->getProperty('loadedClassMetadata');
$property->setAccessible(true);
$property->setValue($metadataFactory, [
'CComponent' => new NullMetadata(new \stdClass()),
'CModel' => new NullMetadata(new \stdClass()),
'CActiveRecord' => new NullMetadata(new \stdClass()),
]);
$sop = simplexml_load_string($xml);
$Body = $sop->children('http://www.w3.org/2003/05/soap-envelope');
$GetList = $Body->children('http://sharepoint.l/namespace.php');
$param0 = $GetList->children();
$code = (string)$param0;// получаем значение AA7D945C-E5C3-4854-B631-10A98E711E2B