protected function ProxyBuilder::buildUseStatements

protected ProxyBuilder::buildUseStatements()

{@inheritdoc{

Overrides ProxyBuilder::buildUseStatements

File

core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php, line 15

Class

ProxyBuilder
Extend the component proxy builder by using the DependencySerialziationTrait.

Namespace

Drupal\Core\ProxyBuilder

Code

protected function buildUseStatements() {
  $output = parent::buildUseStatements();

  $output .= 'use \Drupal\Core\DependencyInjection\DependencySerializationTrait;' . "\n\n";

  return $output;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!ProxyBuilder!ProxyBuilder.php/function/ProxyBuilder::buildUseStatements/8.1.x