LazyService.php

Same filename in this branch
  1. main core/tests/Drupal/Tests/ProxyClass/Core/DependencyInjection/Fixture/LazyService.php
Same filename and directory in other branches
  1. 11.x core/tests/Drupal/Tests/ProxyClass/Core/DependencyInjection/Fixture/LazyService.php
  2. 11.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/LazyService.php

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/LazyService.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Core\DependencyInjection\Fixture;


/**
 * A service used to test the handling of lazy service definitions.
 *
 * @see \Drupal\Tests\ProxyClass\Core\DependencyInjection\Fixture\LazyService
 * @see \Drupal\Tests\Core\DependencyInjection\Compiler\ProxyServicesPassTest
 */
class LazyService {
  
  /**
   * Returns a value.
   *
   * @return string
   *   A value.
   */
  public function getValue() : string {
    return 'value';
  }

}

Classes

Title Deprecated Summary
LazyService A service used to test the handling of lazy service definitions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.