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

Breadcrumb

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

function StringInput::__construct

Parameters

string $input A string representing the parameters from the CLI:

Overrides ArgvInput::__construct

File

vendor/symfony/console/Input/StringInput.php, line 33

Class

StringInput
StringInput represents an input provided as a string.

Namespace

Symfony\Component\Console\Input

Code

public function __construct(string $input) {
    parent::__construct([]);
    $this->setTokens($this->tokenize($input));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal