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

Breadcrumb

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

interface PipesInterface

PipesInterface manages descriptors and pipes for the use of proc_open.

@author Romain Neutron <imprec@gmail.com>

@internal

Hierarchy

  • interface \Symfony\Component\Process\Pipes\PipesInterface

Expanded class hierarchy of PipesInterface

All classes that implement PipesInterface

File

vendor/symfony/process/Pipes/PipesInterface.php, line 21

Namespace

Symfony\Component\Process\Pipes
View source
interface PipesInterface {
    public const CHUNK_SIZE = 16384;
    
    /**
     * Returns an array of descriptors for the use of proc_open.
     */
    public function getDescriptors() : array;
    
    /**
     * Returns an array of filenames indexed by their related stream in case these pipes use temporary files.
     *
     * @return string[]
     */
    public function getFiles() : array;
    
    /**
     * Reads data in file handles and pipes.
     *
     * @param bool $blocking Whether to use blocking calls or not
     * @param bool $close    Whether to close pipes if they've reached EOF
     *
     * @return string[] An array of read data indexed by their fd
     */
    public function readAndWrite(bool $blocking, bool $close = false) : array;
    
    /**
     * Returns if the current state has open file handles or pipes.
     */
    public function areOpen() : bool;
    
    /**
     * Returns if pipes are able to read output.
     */
    public function haveReadSupport() : bool;
    
    /**
     * Closes file handles and pipes.
     */
    public function close() : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PipesInterface::areOpen public function Returns if the current state has open file handles or pipes. 2
PipesInterface::CHUNK_SIZE public constant
PipesInterface::close public function Closes file handles and pipes. 1
PipesInterface::getDescriptors public function Returns an array of descriptors for the use of proc_open. 2
PipesInterface::getFiles public function Returns an array of filenames indexed by their related stream in case these pipes use temporary files. 2
PipesInterface::haveReadSupport public function Returns if pipes are able to read output. 2
PipesInterface::readAndWrite public function Reads data in file handles and pipes. 2

API Navigation

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