Esempio n. 1
0
 /**
  * Returns a text representation of the Application.
  *
  * @param string $namespace An optional namespace name
  * @param bool   $raw       Whether to return raw command list
  *
  * @return string A string representing the Application
  *
  * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  */
 public function asText($namespace = null, $raw = false)
 {
     $descriptor = new TextDescriptor();
     $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, !$raw);
     $descriptor->describe($output, $this, array('namespace' => $namespace, 'raw_output' => true));
     return $output->fetch();
 }
Esempio n. 2
0
 /**
  * Returns a text representation of the Application.
  *
  * @param string $namespace An optional namespace name
  * @param bool   $raw       Whether to return raw command list
  *
  * @return string A string representing the Application
  *
  * @deprecated since version 2.3, to be removed in 3.0.
  */
 public function asText($namespace = null, $raw = false)
 {
     @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
     $descriptor = new TextDescriptor();
     $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, !$raw);
     $descriptor->describe($output, $this, array('namespace' => $namespace, 'raw_output' => true));
     return $output->fetch();
 }
Esempio n. 3
0
 /**
  * Returns a text representation of the command.
  *
  * @return string A string representing the command
  *
  * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  */
 public function asText()
 {
     $descriptor = new TextDescriptor();
     $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
     $descriptor->describe($output, $this, array('raw_output' => true));
     return $output->fetch();
 }
Esempio n. 4
0
 /**
  * Returns a text representation of the Application.
  *
  * @param string $namespace An optional namespace name
  * @param bool   $raw       Whether to return raw command list
  *
  * @return string A string representing the Application
  *
  * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  */
 public function asText($namespace = null, $raw = false)
 {
     $descriptor = new TextDescriptor();
     return $descriptor->describe($this, array('namespace' => $namespace, 'raw_text' => $raw));
 }
Esempio n. 5
0
 /**
  * Returns a textual representation of the InputDefinition.
  *
  * @return string A string representing the InputDefinition
  *
  * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  */
 public function asText()
 {
     $descriptor = new TextDescriptor();
     return $descriptor->describe($this);
 }