每天laravel-20160722|Application-2
2016-04-21 08:40
316 查看
/** * Add a command to the console. * * @param \Symfony\Component\Console\Command\Command $command * @return \Symfony\Component\Console\Command\Command */ public function add(SymfonyCommand $command) { if ($command instanceof Command) {// check the command instance is right, $command->setLaravel($this->laravel);// command instance to run the set function } return $this->addToParent($command);// use this function to add to Parent frame }// add a command to the console. /** * Add the command to the parent instance. * * @param \Symfony\Component\Console\Command\Command $command * @return \Symfony\Component\Console\Command\Command */ protected function addToParent(SymfonyCommand $command) { return parent::add($command);// this a easy way or type }// Add to the parent // use a wrap to make the function to easy know! or understand /** * Add a command, resolving through the application. * * @param string $command * @return \Symfony\Component\Console\Command\Command */ public function resolve($command) { return $this->add($this->laravel->make($command));// a add wrap, like mysql function query and thinkphp function find. yeah }// add a command resolving through the application
相关文章推荐
- Android全局异常统一处理
- appcompat_v7出错
- 微信飞机大战--基于cocos2d-x3.2
- SelectObject函数
- android音视频点/直播模块开发
- android学习13——android egl hello world
- 每日开源新闻速递(2016/4/21):KDE Applications 16.04 发布
- Android LayoutInflater详解
- 【Unity】7.6 自定义输入
- 【Unity】7.5 移动设备输入
- 【Unity】7.4 游戏外设输入
- 【Unity】7.3 键盘输入
- 【Unity】7.2 鼠标输入
- 【Unity】7.1 Input类的方法和变量
- 【Unity】第7章 输入控制
- 【Android】自定义FlowLayout,支持多种布局优化--android-flowlayout
- Unity Shaders and Effects Cookbook (4-1)(4-2)静态立方体贴图的创建与使用
- IOS常用的页面传值方式
- OC 深拷贝、浅拷贝
- 使用AndroidEventBus