helper() 공개 메소드

Create and render the output for a helper object. If the helper object has not already been loaded, it will be loaded and constructed.
public helper ( string $name, array $settings = [] ) : Cake\Console\Helper
$name string The name of the helper to render
$settings array Configuration data for the helper.
리턴 Cake\Console\Helper The created helper instance.
예제 #1
0
파일: Shell.php 프로젝트: a53ali/CakePhP
 /**
  * Render a Console Helper
  *
  * Create and render the output for a helper object. If the helper
  * object has not already been loaded, it will be loaded and constructed.
  *
  * @param string $name The name of the helper to render
  * @param array $settings Configuration data for the helper.
  * @return \Cake\Console\Helper The created helper instance.
  */
 public function helper($name, array $settings = [])
 {
     return $this->_io->helper($name, $settings);
 }