php Symfony-Component-Console-Descriptor-TextDescriptor类(方法)实例源码

下面列出了php Symfony-Component-Console-Descriptor-TextDescriptor 类(方法)源码代码实例,从而了解它的用法。

作者:astronautya    项目:O2OMobile_PH   
/**
  * 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();
 }

作者:anhnt3    项目:admin_S   
/**
  * 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();
 }

作者:GeorgeBroadle    项目:caffeine-vendo   
/**
  * 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();
 }

作者:GroupEs    项目:PS   
/**
  * 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));
 }

作者:d3ancole199    项目:symfon   
/**
  * 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);
 }


问题


面经


文章

微信
公众号

扫码关注公众号