class StoragePass in XHProf 8
Adds available storage handlers to manager in container.
Hierarchy
- class \Drupal\xhprof\Compiler\StoragePass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Expanded class hierarchy of StoragePass
1 file declares its use of StoragePass
File
- src/
Compiler/ StoragePass.php, line 12
Namespace
Drupal\xhprof\CompilerView source
class StoragePass implements CompilerPassInterface {
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container) {
if (FALSE === $container
->hasDefinition('xhprof.storage_manager')) {
return;
}
$definition = $container
->getDefinition('xhprof.storage_manager');
$services = array_keys($container
->findTaggedServiceIds('xhprof_storage'));
foreach ($services as $id) {
$definition
->addMethodCall('addStorage', [
$id,
new Reference($id),
]);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StoragePass:: |
public | function | You can modify the container here before it is dumped to PHP code. |