Results
12.08.2018
business_rules 8.x-1.0-beta1 ::
src/EventSubscriber/BusinessRulesListener.php
$root_namespaces['_serviceId'] = 'container.namespaces';
$root_namespaces = new \ArrayIterator($root_namespaces);
$annotation = new AnnotatedClassDiscovery('/Plugin/BusinessRulesReactsOn', $root_namespaces, 'Drupal\business_rules\Annotation\BusinessRulesReactsOn');
$eventsDefinitions = $annotation->getDefinitions();
}
else { 10.02.2020
multiversion 8.x-1.0-beta34 ::
tests/src/Kernel/ViewsTest.php
/* @see \Drupal\Core\Extension\ModuleInstaller::install() */
$this->container->get('kernel')->rebuildContainer();
// The "_serviceId" property is set only to public services.
/* @see \Drupal\Core\DependencyInjection\Compiler\DependencySerializationTraitPass::process() */
// The "router.route_provider" is decorated by "multiversion" and used
// by the "ViewExecutable". The decorated service must not be private in
// order to be able to serialize/deserialize "ViewExecutable" properly.
/* @see \Drupal\views\ViewExecutable::__sleep() */
static::assertTrue(isset($this->container->get('router.route_provider')->_serviceId));
// The (un-)serialization must go smoothly without the errors.
unserialize(serialize($this->container->get('views.executable')->get(View::load('test_executable_displays'))));
}
} 20.05.2018
plus 8.x-4.x-dev ::
src/Traits/SerializationTrait.php
// Always serialize service identifiers from DependencySerializationTrait.
$serialize[] = '_serviceIds';
$properties = [];
foreach (array_keys(get_object_vars($this)) as $property) {
// Check to see if property can be serialized.
if (in_array($property, $serialize) && $property !== 'sleepWakeupKeepProperties') {
$properties[] = $property; 07.11.2019
search_api 8.x-1.15 ::
tests/src/Kernel/System/SerializationTest.php
// Call serialize() on the restored query to make "equals" work correctly.
// (__sleep() sets some properties as a by-product which the serialized
// version doesn't have – namely, $indexId and $_serviceIds.)
serialize($serialized);
$this->assertEquals($query, $serialized);
}
/**
* Tests that cloning of search queries works correctly. 28.11.2021
aws_s3_stream_wrapper 1.0.x-dev ::
src/StreamWrapper/S3StreamWrapperManager.php
$wrappers = [];
foreach ($this->s3Wrappers as $scheme => $info) {
$info['service_id'] = $this->decorated->getViaScheme($scheme)->_serviceId;
$wrappers[$scheme] = $info;
}
return $wrappers;
}
} 11.04.2022
aggregator 2.x-dev ::
tests/fixtures/update/aggregator_2_1_0.php
'collection' => 'entity.definitions.installed',
'name' => 'aggregator_feed.entity_type',
'value' => 'O:36:"Drupal\Core\Entity\ContentEntityType":40:{s:5:"