Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RewindableGenerator.php

function RewindableGenerator::__construct

File

vendor/symfony/dependency-injection/Argument/RewindableGenerator.php, line 22

Class

RewindableGenerator
@internal

Namespace

Symfony\Component\DependencyInjection\Argument

Code

public function __construct(callable $generator, int|callable $count) {
    $this->generator = $generator(...);
    $this->count = \is_int($count) ? $count : $count(...);
}
RSS feed
Powered by Drupal