概述 快速入门 教程 手册 最佳实践 组件 参考 贡献

发布于 2015-08-27 16:56:32 | 74 次阅读 | 评论: 0 | 来源: 网络整理

The Formatter helpers provides functions to format the output with colors. You can do more advanced things with this helper than you can in Coloring the Output.

The FormatterHelper is included in the default helper set, which you can get by calling getHelperSet():

$formatter = $this->getHelper('formatter');

The methods return a string, which you’ll usually render to the console by passing it to the OutputInterface::writeln method.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务