-
Notifications
You must be signed in to change notification settings - Fork 2
/
_ide_helper.php
10712 lines (9793 loc) · 286 KB
/
_ide_helper.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
*
* Updated for Laravel 4.0.8 (2013-10-07)
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <[email protected]>
*/
exit('Only to be used as an helper for your IDE');
class App extends Illuminate\Support\Facades\App{
/**
* Create a new Illuminate application instance.
*
* @param \Illuminate\Http\Request $request
* @return void
* @static
*/
public static function __construct($request = null){
Illuminate\Foundation\Application::__construct($request);
}
/**
* Set the application request for the console environment.
*
* @return void
* @static
*/
public static function setRequestForConsoleEnvironment(){
Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
}
/**
* Redirect the request if it has a trailing slash.
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse|null
* @static
*/
public static function redirectIfTrailingSlash(){
return Illuminate\Foundation\Application::redirectIfTrailingSlash();
}
/**
* Bind the installation paths to the application.
*
* @param array $paths
* @return void
* @static
*/
public static function bindInstallPaths($paths){
Illuminate\Foundation\Application::bindInstallPaths($paths);
}
/**
* Get the application bootstrap file.
*
* @return string
* @static
*/
public static function getBootstrapFile(){
return Illuminate\Foundation\Application::getBootstrapFile();
}
/**
* Start the exception handling for the request.
*
* @return void
* @static
*/
public static function startExceptionHandling(){
Illuminate\Foundation\Application::startExceptionHandling();
}
/**
* Get the current application environment.
*
* @return string
* @static
*/
public static function environment(){
return Illuminate\Foundation\Application::environment();
}
/**
* Detect the application's current environment.
*
* @param array|string $environments
* @return string
* @static
*/
public static function detectEnvironment($environments){
return Illuminate\Foundation\Application::detectEnvironment($environments);
}
/**
* Determine if we are running in the console.
*
* @return bool
* @static
*/
public static function runningInConsole(){
return Illuminate\Foundation\Application::runningInConsole();
}
/**
* Determine if we are running unit tests.
*
* @return bool
* @static
*/
public static function runningUnitTests(){
return Illuminate\Foundation\Application::runningUnitTests();
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @param array $options
* @return void
* @static
*/
public static function register($provider, $options = array()){
Illuminate\Foundation\Application::register($provider, $options);
}
/**
* Load and boot all of the remaining deferred providers.
*
* @return void
* @static
*/
public static function loadDeferredProviders(){
Illuminate\Foundation\Application::loadDeferredProviders();
}
/**
* Resolve the given type from the container.
*
* (Overriding Container::make)
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function make($abstract, $parameters = array()){
return Illuminate\Foundation\Application::make($abstract, $parameters);
}
/**
* Register a "before" application filter.
*
* @param Closure|string $callback
* @return void
* @static
*/
public static function before($callback){
Illuminate\Foundation\Application::before($callback);
}
/**
* Register an "after" application filter.
*
* @param Closure|string $callback
* @return void
* @static
*/
public static function after($callback){
Illuminate\Foundation\Application::after($callback);
}
/**
* Register a "close" application filter.
*
* @param Closure|string $callback
* @return void
* @static
*/
public static function close($callback){
Illuminate\Foundation\Application::close($callback);
}
/**
* Register a "finish" application filter.
*
* @param Closure|string $callback
* @return void
* @static
*/
public static function finish($callback){
Illuminate\Foundation\Application::finish($callback);
}
/**
* Register a "shutdown" callback.
*
* @param callable $callback
* @return void
* @static
*/
public static function shutdown($callback = null){
Illuminate\Foundation\Application::shutdown($callback);
}
/**
* Handles the given request and delivers the response.
*
* @return void
* @static
*/
public static function run(){
Illuminate\Foundation\Application::run();
}
/**
* Handle the given request and get the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
* @static
*/
public static function dispatch($request){
return Illuminate\Foundation\Application::dispatch($request);
}
/**
* Handle the given request and get the response.
*
* Provides compatibility with BrowserKit functional testing.
*
* @implements HttpKernelInterface::handle
* @param \Illuminate\Http\Request $request
* @param int $type
* @param bool $catch
* @return \Symfony\Component\HttpFoundation\Response
* @static
*/
public static function handle($request, $type = 1, $catch = true){
return Illuminate\Foundation\Application::handle($request, $type, $catch);
}
/**
* Boot the application's service providers.
*
* @return void
* @static
*/
public static function boot(){
Illuminate\Foundation\Application::boot();
}
/**
* Register a new boot listener.
*
* @param mixed $callback
* @return void
* @static
*/
public static function booting($callback){
Illuminate\Foundation\Application::booting($callback);
}
/**
* Register a new "booted" listener.
*
* @param mixed $callback
* @return void
* @static
*/
public static function booted($callback){
Illuminate\Foundation\Application::booted($callback);
}
/**
* Prepare the request by injecting any services.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Request
* @static
*/
public static function prepareRequest($request){
return Illuminate\Foundation\Application::prepareRequest($request);
}
/**
* Prepare the given value as a Response object.
*
* @param mixed $value
* @return \Symfony\Component\HttpFoundation\Response
* @static
*/
public static function prepareResponse($value){
return Illuminate\Foundation\Application::prepareResponse($value);
}
/**
* Determine if the application is currently down for maintenance.
*
* @return bool
* @static
*/
public static function isDownForMaintenance(){
return Illuminate\Foundation\Application::isDownForMaintenance();
}
/**
* Register a maintenance mode event listener.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function down($callback){
Illuminate\Foundation\Application::down($callback);
}
/**
* Throw an HttpException with the given data.
*
* @param int $code
* @param string $message
* @param array $headers
* @return void
* @static
*/
public static function abort($code, $message = '', $headers = array()){
Illuminate\Foundation\Application::abort($code, $message, $headers);
}
/**
* Register a 404 error handler.
*
* @param Closure $callback
* @return void
* @static
*/
public static function missing($callback){
Illuminate\Foundation\Application::missing($callback);
}
/**
* Register an application error handler.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function error($callback){
Illuminate\Foundation\Application::error($callback);
}
/**
* Register an error handler at the bottom of the stack.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function pushError($callback){
Illuminate\Foundation\Application::pushError($callback);
}
/**
* Register an error handler for fatal errors.
*
* @param Closure $callback
* @return void
* @static
*/
public static function fatal($callback){
Illuminate\Foundation\Application::fatal($callback);
}
/**
* Get the configuration loader instance.
*
* @return \Illuminate\Config\LoaderInterface
* @static
*/
public static function getConfigLoader(){
return Illuminate\Foundation\Application::getConfigLoader();
}
/**
* Get the service provider repository instance.
*
* @return \Illuminate\Foundation\ProviderRepository
* @static
*/
public static function getProviderRepository(){
return Illuminate\Foundation\Application::getProviderRepository();
}
/**
* Get the current application locale.
*
* @return string
* @static
*/
public static function getLocale(){
return Illuminate\Foundation\Application::getLocale();
}
/**
* Set the current application locale.
*
* @param string $locale
* @return void
* @static
*/
public static function setLocale($locale){
Illuminate\Foundation\Application::setLocale($locale);
}
/**
* Get the service providers that have been loaded.
*
* @return array
* @static
*/
public static function getLoadedProviders(){
return Illuminate\Foundation\Application::getLoadedProviders();
}
/**
* Set the application's deferred services.
*
* @param array $services
* @return void
* @static
*/
public static function setDeferredServices($services){
Illuminate\Foundation\Application::setDeferredServices($services);
}
/**
* Get or set the request class for the application.
*
* @param string $class
* @return string
* @static
*/
public static function requestClass($class = null){
return Illuminate\Foundation\Application::requestClass($class);
}
/**
* Call a method on the default request class.
*
* @param string $method
* @param array $parameters
* @return mixed
* @static
*/
public static function onRequest($method, $parameters = array()){
return Illuminate\Foundation\Application::onRequest($method, $parameters);
}
/**
* Dynamically access application services.
*
* @param string $key
* @return mixed
* @static
*/
public static function __get($key){
return Illuminate\Foundation\Application::__get($key);
}
/**
* Dynamically set application services.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function __set($key, $value){
Illuminate\Foundation\Application::__set($key, $value);
}
/**
* Determine if the given abstract type has been bound.
*
* @param string $abstract
* @return bool
* @static
*/
public static function bound($abstract){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::bound($abstract);
}
/**
* Register a binding with the container.
*
* @param string $abstract
* @param Closure|string|null $concrete
* @param bool $shared
* @return void
* @static
*/
public static function bind($abstract, $concrete = null, $shared = false){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
}
/**
* Register a binding if it hasn't already been registered.
*
* @param string $abstract
* @param Closure|string|null $concrete
* @param bool $shared
* @return bool
* @static
*/
public static function bindIf($abstract, $concrete = null, $shared = false){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
}
/**
* Register a shared binding in the container.
*
* @param string $abstract
* @param Closure|string|null $concrete
* @return void
* @static
*/
public static function singleton($abstract, $concrete = null){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::singleton($abstract, $concrete);
}
/**
* Wrap a Closure such that it is shared.
*
* @param Closure $closure
* @return Closure
* @static
*/
public static function share($closure){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::share($closure);
}
/**
* "Extend" an abstract type in the container.
*
* @param string $abstract
* @param Closure $closure
* @return void
* @static
*/
public static function extend($abstract, $closure){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::extend($abstract, $closure);
}
/**
* Register an existing instance as shared in the container.
*
* @param string $abstract
* @param mixed $instance
* @return void
* @static
*/
public static function instance($abstract, $instance){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::instance($abstract, $instance);
}
/**
* Alias a type to a shorter name.
*
* @param string $abstract
* @param string $alias
* @return void
* @static
*/
public static function alias($abstract, $alias){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::alias($abstract, $alias);
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @param array $parameters
* @return mixed
* @static
*/
public static function build($concrete, $parameters = array()){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::build($concrete, $parameters);
}
/**
* Register a new resolving callback.
*
* @param Closure $callback
* @return void
* @static
*/
public static function resolving($callback){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::resolving($callback);
}
/**
* Get the container's bindings.
*
* @return array
* @static
*/
public static function getBindings(){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::getBindings();
}
/**
* Determine if a given offset exists.
*
* @param string $key
* @return bool
* @static
*/
public static function offsetExists($key){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::offsetExists($key);
}
/**
* Get the value at a given offset.
*
* @param string $key
* @return mixed
* @static
*/
public static function offsetGet($key){
//Method inherited from Illuminate\Container\Container
return Illuminate\Foundation\Application::offsetGet($key);
}
/**
* Set the value at a given offset.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function offsetSet($key, $value){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::offsetSet($key, $value);
}
/**
* Unset the value at a given offset.
*
* @param string $key
* @return void
* @static
*/
public static function offsetUnset($key){
//Method inherited from Illuminate\Container\Container
Illuminate\Foundation\Application::offsetUnset($key);
}
}
class Artisan extends Illuminate\Support\Facades\Artisan{
/**
* Start a new Console application.
*
* @param \Illuminate\Foundation\Application $app
* @return \Illuminate\Console\Application
* @static
*/
public static function start($app){
return Illuminate\Console\Application::start($app);
}
/**
* Add a command to the console.
*
* @param \Symfony\Component\Console\Command\Command $command
* @return \Symfony\Component\Console\Command\Command
* @static
*/
public static function add($command){
return Illuminate\Console\Application::add($command);
}
/**
* Add a command, resolving through the application.
*
* @param string $command
* @return \Symfony\Component\Console\Command\Command
* @static
*/
public static function resolve($command){
return Illuminate\Console\Application::resolve($command);
}
/**
* Resolve an array of commands through the application.
*
* @param array|dynamic $commands
* @return void
* @static
*/
public static function resolveCommands($commands){
Illuminate\Console\Application::resolveCommands($commands);
}
/**
* Render the given exception.
*
* @param \Exception $e
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return void
* @static
*/
public static function renderException($e, $output){
Illuminate\Console\Application::renderException($e, $output);
}
/**
* Set the exception handler instance.
*
* @param \Illuminate\Exception\Handler $handler
* @return void
* @static
*/
public static function setExceptionHandler($handler){
Illuminate\Console\Application::setExceptionHandler($handler);
}
/**
* Set the Laravel application instance.
*
* @param \Illuminate\Foundation\Application $laravel
* @return void
* @static
*/
public static function setLaravel($laravel){
Illuminate\Console\Application::setLaravel($laravel);
}
/**
* Constructor.
*
* @param string $name The name of the application
* @param string $version The version of the application
* @api
* @static
*/
public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::__construct($name, $version);
}
/**
*
*
* @static
*/
public static function setDispatcher($dispatcher){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setDispatcher($dispatcher);
}
/**
* Runs the current application.
*
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
* @return integer 0 if everything went fine, or an error code
* @throws \Exception When doRun returns Exception
* @api
* @static
*/
public static function run($input = null, $output = null){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::run($input, $output);
}
/**
* Runs the current application.
*
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
* @return integer 0 if everything went fine, or an error code
* @static
*/
public static function doRun($input, $output){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::doRun($input, $output);
}
/**
* Set a helper set to be used with the command.
*
* @param HelperSet $helperSet The helper set
* @api
* @static
*/
public static function setHelperSet($helperSet){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setHelperSet($helperSet);
}
/**
* Get the helper set associated with the command.
*
* @return HelperSet The HelperSet instance associated with this command
* @api
* @static
*/
public static function getHelperSet(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getHelperSet();
}
/**
* Set an input definition set to be used with this application
*
* @param InputDefinition $definition The input definition
* @api
* @static
*/
public static function setDefinition($definition){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setDefinition($definition);
}
/**
* Gets the InputDefinition related to this Application.
*
* @return InputDefinition The InputDefinition instance
* @static
*/
public static function getDefinition(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getDefinition();
}
/**
* Gets the help message.
*
* @return string A help message.
* @static
*/
public static function getHelp(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getHelp();
}
/**
* Sets whether to catch exceptions or not during commands execution.
*
* @param Boolean $boolean Whether to catch exceptions or not during commands execution
* @api
* @static
*/
public static function setCatchExceptions($boolean){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setCatchExceptions($boolean);
}
/**
* Sets whether to automatically exit after a command execution or not.
*
* @param Boolean $boolean Whether to automatically exit after a command execution or not
* @api
* @static
*/
public static function setAutoExit($boolean){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setAutoExit($boolean);
}
/**
* Gets the name of the application.
*
* @return string The application name
* @api
* @static
*/
public static function getName(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getName();
}
/**
* Sets the application name.
*
* @param string $name The application name
* @api
* @static
*/
public static function setName($name){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setName($name);
}
/**
* Gets the application version.
*
* @return string The application version
* @api
* @static
*/
public static function getVersion(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getVersion();
}
/**
* Sets the application version.
*
* @param string $version The application version
* @api
* @static
*/
public static function setVersion($version){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::setVersion($version);
}
/**
* Returns the long version of the application.
*
* @return string The long application version
* @api
* @static
*/
public static function getLongVersion(){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::getLongVersion();
}
/**
* Registers a new command.
*
* @param string $name The command name
* @return Command The newly created command
* @api
* @static
*/
public static function register($name){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::register($name);
}
/**
* Adds an array of command objects.
*
* @param Command[] $commands An array of commands
* @api
* @static
*/
public static function addCommands($commands){
//Method inherited from Symfony\Component\Console\Application
Illuminate\Console\Application::addCommands($commands);
}
/**
* Returns a registered command by name or alias.
*
* @param string $name The command name or alias
* @return Command A Command object
* @throws \InvalidArgumentException When command name given does not exist
* @api
* @static
*/
public static function get($name){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::get($name);
}
/**
* Returns true if the command exists, false otherwise.
*
* @param string $name The command name or alias
* @return Boolean true if the command exists, false otherwise
* @api
* @static
*/
public static function has($name){
//Method inherited from Symfony\Component\Console\Application
return Illuminate\Console\Application::has($name);
}
/**
* Returns an array of all unique namespaces used by currently registered commands.