每天laravel-20160723|Application-3
来源:互联网 发布:啊哈算法 编辑:程序博客网 时间:2024/05/16 03:44
/** * Resolve an array of commands through the application. * * @param array|mixed $commands * @return $this */ public function resolveCommands($commands)// function name is resolveCommands { $commands = is_array($commands) ? $commands : func_get_args();// if the commands is a array, get it or get the arguments, use a function fuc_get_args() foreach ($commands as $command) { $this->resolve($command); }// use a foreach() function to get all the callback function like use a function array_map(); return $this; }// Resolve an array of commands through the application /** * Get the default input definitions for the applications. * * This is used to add the --env option to every available command. * * @return \Symfony\Component\Console\Input\InputDefinition */ protected function getDefaultInputDefinition()// Get Default Input Definition { $definition = parent::getDefaultInputDefinition();// use parents function $definition->addOption($this->getEnvironmentOption());// addOption()// get the EvironmentOption return $definition; }// Get the default input definitions for the applications. // This is used to add the --env option to every available command. /** * Get the global environment option for the definition. * * @return \Symfony\Component\Console\Input\InputOption */ protected function getEnvironmentOption() { $message = 'The environment the command should run under.';// a message return new InputOption('--env', null, InputOption::VALUE_OPTIONAL, $message);// get the class }// Get the golobal environment option for the definition /** * Get the Laravel application instance. * * @return \Illuminate\Contracts\Foundation\Application */ public function getLaravel() { return $this->laravel; }// Get the laravel application instance.
0 0
- 每天laravel-20160723|Application-3
- 每天laravel-20160721|Application-1
- 每天laravel-20160722|Application-2
- 每天laravel-20160731| Container -3
- 每天laravel
- [李景山php]每天laravel[006]-vendor/laravel/framework/src/ILLuminate/Foundation/Application.php
- 每天laravel-20160725| Genaerator command-3
- [李景山php]每天laravel-20160829|McryptEncrypter-3
- [李景山php]每天laravel-20160903|Dispatcher-3
- [李景山php]每天laravel-20160912|FileSystem-3
- 每天laravel-20160620|MemcachedConnector
- 每天laravel-20160622|MeacachedStore
- 每天laravel-20160623|NullStore
- 每天laravel-20160624|RateLimiter
- 每天laravel-20160625|RedisStore
- 每天laravel-20160626|RetrievesMultipleKeys
- 每天laravel-20160627|TaggableStore
- 每天laravel-20160628|TaggedCache
- 输出数组的全部组合
- 在计算机中删除指定文件
- Android Scroll 详解
- iOS Apple Pay详解以及处理支付逻辑(附带Demo)
- mysql 5.7 版本,密码无法登陆,更改密码时出现ERROR 1054 (42S22): Unknown column 'password' in 'fie
- 每天laravel-20160723|Application-3
- 关于H5 audio标签的个人使用心得
- 利用UIWebView打造一个炫酷的视频背景视图(OC & Swift)
- 该如何解释我们的第六感
- Git使用记录
- 我的SpringMvc学习之路之注解
- JS中的this变量的使用介绍
- [从头学数学] 第189节 常用逻辑用语
- 安装IIS后启动tomcat报80端口被占用