Skip to content

Commit 99ccc84

Browse files
author
zhangyue
committed
20170502
1 parent 2f93138 commit 99ccc84

File tree

78 files changed

+1017
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1017
-210
lines changed

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ protected function validator(array $data)
6060
/**
6161
* Create a new user instance after a valid registration.
6262
*
63+
* 在有效注册之后创建一个新的用户实例
64+
*
6365
* @param array $data
6466
* @return User
6567
*/

vendor/laravel/framework/src/Illuminate/Auth/Events/Registered.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class Registered
1818
/**
1919
* Create a new event instance.
2020
*
21+
* 创建一个新的事件实例
22+
*
2123
* @param \Illuminate\Contracts\Auth\Authenticatable $user
2224
* @return void
2325
*/

vendor/laravel/framework/src/Illuminate/Bus/Queueable.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ trait Queueable
2828
/**
2929
* Set the desired connection for the job.
3030
*
31+
* 为作业设置所需的连接
32+
*
3133
* @param string|null $connection
3234
* @return $this
3335
*/
3436
public function onConnection($connection)
3537
{
3638
$this->connection = $connection;
37-
3839
return $this;
3940
}
4041

4142
/**
4243
* Set the desired queue for the job.
4344
*
45+
* 设置工作所需的队列
46+
*
4447
* @param string|null $queue
4548
* @return $this
4649
*/
@@ -54,6 +57,8 @@ public function onQueue($queue)
5457
/**
5558
* Set the desired delay for the job.
5659
*
60+
* 为工作设定期望的延迟
61+
*
5762
* @param \DateTime|int|null $delay
5863
* @return $this
5964
*/

vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function __construct(Cache $cache)
2828
/**
2929
* Determine if the given key has been "accessed" too many times.
3030
*
31+
* 确定给定的键是否被“访问”过多次
32+
*
3133
* @param string $key
3234
* @param int $maxAttempts
3335
* @param float|int $decayMinutes
@@ -67,6 +69,8 @@ protected function lockout($key, $decayMinutes)
6769
/**
6870
* Increment the counter for a given key for a given decay time.
6971
*
72+
* 为给定的衰减时间增加给定键的计数器
73+
*
7074
* @param string $key
7175
* @param float|int $decayMinutes
7276
* @return int
@@ -117,6 +121,8 @@ public function retriesLeft($key, $maxAttempts)
117121
/**
118122
* Clear the hits and lockout for the given key.
119123
*
124+
* 清除给定键的点击和锁定
125+
*
120126
* @param string $key
121127
* @return void
122128
*/
@@ -130,6 +136,8 @@ public function clear($key)
130136
/**
131137
* Get the number of seconds until the "key" is accessible again.
132138
*
139+
* 获得秒数,直到“键”再次访问
140+
*
133141
* @param string $key
134142
* @return int
135143
*/

vendor/laravel/framework/src/Illuminate/Config/Repository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function push($key, $value)
106106
/**
107107
* Get all of the configuration items for the application.
108108
*
109+
* 获取应用程序的所有配置项
110+
*
109111
* @return array
110112
*/
111113
public function all()

vendor/laravel/framework/src/Illuminate/Console/Application.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Application extends SymfonyApplication implements ApplicationContract
4646
/**
4747
* Create a new Artisan console application.
4848
*
49-
* 创建一个新的
49+
* 创建一个新的Artisan控制台应用程序
5050
*
5151
* @param \Illuminate\Contracts\Container\Container $laravel
5252
* @param \Illuminate\Contracts\Events\Dispatcher $events
@@ -135,6 +135,8 @@ public static function forgetBootstrappers()
135135
/**
136136
* Run an Artisan console command by name.
137137
*
138+
* 按名称运行一个Artisan控制台命令
139+
*
138140
* @param string $command
139141
* @param array $parameters
140142
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
@@ -158,6 +160,8 @@ public function call($command, array $parameters = [], $outputBuffer = null)
158160
/**
159161
* Get the output for the last run command.
160162
*
163+
* 获取最后一个运行命令的输出
164+
*
161165
* @return string
162166
*/
163167
public function output()
@@ -168,6 +172,8 @@ public function output()
168172
/**
169173
* Add a command to the console.
170174
*
175+
* 向控制台添加一个命令
176+
*
171177
* @param \Symfony\Component\Console\Command\Command $command
172178
* @return \Symfony\Component\Console\Command\Command
173179
*/

vendor/laravel/framework/src/Illuminate/Console/Command.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class Command extends SymfonyCommand
8787
/**
8888
* Create a new console command instance.
8989
*
90+
* 创建一个新的控制台命令实例
91+
*
9092
* @return void
9193
*/
9294
public function __construct()
@@ -185,6 +187,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
185187
/**
186188
* Call another console command.
187189
*
190+
* 调用另一个控制台命令
191+
*
188192
* @param string $command
189193
* @param array $arguments
190194
* @return int
@@ -201,6 +205,8 @@ public function call($command, array $arguments = [])
201205
/**
202206
* Call another console command silently.
203207
*
208+
* 调用另一个控制台命令
209+
*
204210
* @param string $command
205211
* @param array $arguments
206212
* @return int
@@ -228,6 +234,8 @@ public function hasArgument($name)
228234
/**
229235
* Get the value of a command argument.
230236
*
237+
* 获取一个命令参数的值
238+
*
231239
* @param string $key
232240
* @return string|array
233241
*/
@@ -264,6 +272,8 @@ public function hasOption($name)
264272
/**
265273
* Get the value of a command option.
266274
*
275+
* 获取命令选项的值
276+
*
267277
* @param string $key
268278
* @return string|array
269279
*/
@@ -378,6 +388,8 @@ public function choice($question, array $choices, $default = null, $attempts = n
378388
/**
379389
* Format input to textual table.
380390
*
391+
* 格式输入到文本表
392+
*
381393
* @param array $headers
382394
* @param \Illuminate\Contracts\Support\Arrayable|array $rows
383395
* @param string $style
@@ -397,6 +409,8 @@ public function table(array $headers, $rows, $style = 'default')
397409
/**
398410
* Write a string as information output.
399411
*
412+
* 将字符串写入信息输出
413+
*
400414
* @param string $string
401415
* @param null|int|string $verbosity
402416
* @return void
@@ -409,6 +423,8 @@ public function info($string, $verbosity = null)
409423
/**
410424
* Write a string as standard output.
411425
*
426+
* 将字符串作为标准输出写入
427+
*
412428
* @param string $string
413429
* @param string $style
414430
* @param null|int|string $verbosity
@@ -424,6 +440,8 @@ public function line($string, $style = null, $verbosity = null)
424440
/**
425441
* Write a string as comment output.
426442
*
443+
* 编写一个字符串作为注释输出
444+
*
427445
* @param string $string
428446
* @param null|int|string $verbosity
429447
* @return void
@@ -448,6 +466,8 @@ public function question($string, $verbosity = null)
448466
/**
449467
* Write a string as error output.
450468
*
469+
* 将字符串写入错误输出
470+
*
451471
* @param string $string
452472
* @param null|int|string $verbosity
453473
* @return void

vendor/laravel/framework/src/Illuminate/Console/ConfirmableTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ trait ConfirmableTrait
99
/**
1010
* Confirm before proceeding with the action.
1111
*
12+
* 在继续操作之前确认
13+
*
1214
* This method only asks for confirmation in production.
1315
*
16+
* 这种方法只要求在生产中确认
17+
*
1418
* @param string $warning
1519
* @param \Closure|bool|null $callback
1620
* @return bool

vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ protected function makeDirectory($path)
146146
/**
147147
* Build the class with the given name.
148148
*
149+
* 用给定的名称构建类
150+
*
149151
* @param string $name
150152
* @return string
151153
*/
@@ -188,6 +190,8 @@ protected function getNamespace($name)
188190
/**
189191
* Replace the class name for the given stub.
190192
*
193+
* 替换给定桩的类名
194+
*
191195
* @param string $stub
192196
* @param string $name
193197
* @return string

vendor/laravel/framework/src/Illuminate/Contracts/Auth/Access/Gate.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function denies($ability, $arguments = []);
6767
/**
6868
* Determine if the given ability should be granted.
6969
*
70+
* 确定是否给予给定的能力
71+
*
7072
* @param string $ability
7173
* @param array|mixed $arguments
7274
* @return bool
@@ -76,6 +78,8 @@ public function check($ability, $arguments = []);
7678
/**
7779
* Determine if the given ability should be granted for the current user.
7880
*
81+
* 确定当前用户是否授予给定的能力
82+
*
7983
* @param string $ability
8084
* @param array|mixed $arguments
8185
* @return \Illuminate\Auth\Access\Response
@@ -99,6 +103,8 @@ public function getPolicyFor($class);
99103
/**
100104
* Get a guard instance for the given user.
101105
*
106+
* 为给定用户获取保护实例
107+
*
102108
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
103109
* @return static
104110
*/

0 commit comments

Comments
 (0)