每天laravel-20160722|Application-2
来源:互联网 发布:渔趣网淘宝分店卖假货 编辑:程序博客网 时间:2024/06/05 06:51
/** * 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
0 0
- 每天laravel-20160722|Application-2
- 每天laravel-20160721|Application-1
- 每天laravel-20160723|Application-3
- 每天laravel-20160711|Event-2
- 每天laravel-20160718|Command-2
- 每天laravel-20160730| Container -2
- 每天laravel-20160822|CookieJar-2
- 每天laravel
- [李景山php]每天laravel[006]-vendor/laravel/framework/src/ILLuminate/Foundation/Application.php
- 每天laravel-20160725| Genaerator command-2
- [李景山php]每天laravel-20160828|McryptEncrypter-2
- [李景山php]每天laravel-20160902|Dispatcher-2
- [李景山php]每天laravel-20160911|FileSystem-2
- [李景山php]每天laravel-20160915|FileSystemManager-2
- [李景山php]每天laravel-20160920|Writer-2
- 每天laravel-20160620|MemcachedConnector
- 每天laravel-20160622|MeacachedStore
- 每天laravel-20160623|NullStore
- Android全局异常统一处理
- C++实验4——乘法口诀表
- 无废话ExtJs 入门教程一[学习方法]
- c++实验4-分数的累加
- 项目一 数组做数据成员
- 每天laravel-20160722|Application-2
- HDU 1847 Good Luck in CET-4 Everybody!
- JavaScript charAt() 方法
- #Objective-C 经典字典数组排序 - 省市区
- 第八周项目1--数组做数据成员
- c++第四次实验
- c++作业4
- 第六周项目4-静态成员应用
- 项目——多文件组织的数组作数据成员