You are here

ProxyBuilder.php in Drupal 10

File

core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
View source
<?php

namespace Drupal\Core\ProxyBuilder;

use Drupal\Component\ProxyBuilder\ProxyBuilder as BaseProxyBuilder;

/**
 * Extend the component proxy builder by using the DependencySerializationTrait.
 */
class ProxyBuilder extends BaseProxyBuilder {

  /**
   * {@inheritdoc}
   */
  protected function buildUseStatements() {
    $output = parent::buildUseStatements();
    $output .= 'use \\Drupal\\Core\\DependencyInjection\\DependencySerializationTrait;' . "\n\n";
    return $output;
  }

}

Classes

Namesort descending Description
ProxyBuilder Extend the component proxy builder by using the DependencySerializationTrait.