-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ide_helper.php
12969 lines (11869 loc) · 377 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
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.3.28 on 2017-06-04.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
}
namespace Illuminate\Support\Facades {
class App {
/**
* Get the version number of the application.
*
* @return string
* @static
*/
public static function version()
{
return \Illuminate\Foundation\Application::version();
}
/**
* Run the given array of bootstrap classes.
*
* @param array $bootstrappers
* @return void
* @static
*/
public static function bootstrapWith($bootstrappers)
{
\Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
}
/**
* Register a callback to run after loading the environment.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function afterLoadingEnvironment($callback)
{
\Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
}
/**
* Register a callback to run before a bootstrapper.
*
* @param string $bootstrapper
* @param \Closure $callback
* @return void
* @static
*/
public static function beforeBootstrapping($bootstrapper, $callback)
{
\Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
}
/**
* Register a callback to run after a bootstrapper.
*
* @param string $bootstrapper
* @param \Closure $callback
* @return void
* @static
*/
public static function afterBootstrapping($bootstrapper, $callback)
{
\Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
}
/**
* Determine if the application has been bootstrapped before.
*
* @return bool
* @static
*/
public static function hasBeenBootstrapped()
{
return \Illuminate\Foundation\Application::hasBeenBootstrapped();
}
/**
* Set the base path for the application.
*
* @param string $basePath
* @return $this
* @static
*/
public static function setBasePath($basePath)
{
return \Illuminate\Foundation\Application::setBasePath($basePath);
}
/**
* Get the path to the application "app" directory.
*
* @return string
* @static
*/
public static function path()
{
return \Illuminate\Foundation\Application::path();
}
/**
* Get the base path of the Laravel installation.
*
* @return string
* @static
*/
public static function basePath()
{
return \Illuminate\Foundation\Application::basePath();
}
/**
* Get the path to the bootstrap directory.
*
* @return string
* @static
*/
public static function bootstrapPath()
{
return \Illuminate\Foundation\Application::bootstrapPath();
}
/**
* Get the path to the application configuration files.
*
* @return string
* @static
*/
public static function configPath()
{
return \Illuminate\Foundation\Application::configPath();
}
/**
* Get the path to the database directory.
*
* @return string
* @static
*/
public static function databasePath()
{
return \Illuminate\Foundation\Application::databasePath();
}
/**
* Set the database directory.
*
* @param string $path
* @return $this
* @static
*/
public static function useDatabasePath($path)
{
return \Illuminate\Foundation\Application::useDatabasePath($path);
}
/**
* Get the path to the language files.
*
* @return string
* @static
*/
public static function langPath()
{
return \Illuminate\Foundation\Application::langPath();
}
/**
* Get the path to the public / web directory.
*
* @return string
* @static
*/
public static function publicPath()
{
return \Illuminate\Foundation\Application::publicPath();
}
/**
* Get the path to the storage directory.
*
* @return string
* @static
*/
public static function storagePath()
{
return \Illuminate\Foundation\Application::storagePath();
}
/**
* Set the storage directory.
*
* @param string $path
* @return $this
* @static
*/
public static function useStoragePath($path)
{
return \Illuminate\Foundation\Application::useStoragePath($path);
}
/**
* Get the path to the resources directory.
*
* @return string
* @static
*/
public static function resourcePath()
{
return \Illuminate\Foundation\Application::resourcePath();
}
/**
* Get the path to the environment file directory.
*
* @return string
* @static
*/
public static function environmentPath()
{
return \Illuminate\Foundation\Application::environmentPath();
}
/**
* Set the directory for the environment file.
*
* @param string $path
* @return $this
* @static
*/
public static function useEnvironmentPath($path)
{
return \Illuminate\Foundation\Application::useEnvironmentPath($path);
}
/**
* Set the environment file to be loaded during bootstrapping.
*
* @param string $file
* @return $this
* @static
*/
public static function loadEnvironmentFrom($file)
{
return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
}
/**
* Get the environment file the application is using.
*
* @return string
* @static
*/
public static function environmentFile()
{
return \Illuminate\Foundation\Application::environmentFile();
}
/**
* Get the fully qualified path to the environment file.
*
* @return string
* @static
*/
public static function environmentFilePath()
{
return \Illuminate\Foundation\Application::environmentFilePath();
}
/**
* Get or check the current application environment.
*
* @return string|bool
* @static
*/
public static function environment()
{
return \Illuminate\Foundation\Application::environment();
}
/**
* Determine if application is in local environment.
*
* @return bool
* @static
*/
public static function isLocal()
{
return \Illuminate\Foundation\Application::isLocal();
}
/**
* Detect the application's current environment.
*
* @param \Closure $callback
* @return string
* @static
*/
public static function detectEnvironment($callback)
{
return \Illuminate\Foundation\Application::detectEnvironment($callback);
}
/**
* 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 all of the configured providers.
*
* @return void
* @static
*/
public static function registerConfiguredProviders()
{
\Illuminate\Foundation\Application::registerConfiguredProviders();
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @param array $options
* @param bool $force
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function register($provider, $options = array(), $force = false)
{
return \Illuminate\Foundation\Application::register($provider, $options, $force);
}
/**
* Get the registered service provider instance if it exists.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @return \Illuminate\Support\ServiceProvider|null
* @static
*/
public static function getProvider($provider)
{
return \Illuminate\Foundation\Application::getProvider($provider);
}
/**
* Resolve a service provider instance from the class name.
*
* @param string $provider
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function resolveProviderClass($provider)
{
return \Illuminate\Foundation\Application::resolveProviderClass($provider);
}
/**
* Load and boot all of the remaining deferred providers.
*
* @return void
* @static
*/
public static function loadDeferredProviders()
{
\Illuminate\Foundation\Application::loadDeferredProviders();
}
/**
* Load the provider for a deferred service.
*
* @param string $service
* @return void
* @static
*/
public static function loadDeferredProvider($service)
{
\Illuminate\Foundation\Application::loadDeferredProvider($service);
}
/**
* Register a deferred provider and service.
*
* @param string $provider
* @param string $service
* @return void
* @static
*/
public static function registerDeferredProvider($provider, $service = null)
{
\Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
}
/**
* 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);
}
/**
* Determine if the given abstract type has been bound.
*
* (Overriding Container::bound)
*
* @param string $abstract
* @return bool
* @static
*/
public static function bound($abstract)
{
return \Illuminate\Foundation\Application::bound($abstract);
}
/**
* Determine if the application has booted.
*
* @return bool
* @static
*/
public static function isBooted()
{
return \Illuminate\Foundation\Application::isBooted();
}
/**
* 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);
}
/**
* {@inheritdoc}
*
* @static
*/
public static function handle($request, $type = 1, $catch = true)
{
return \Illuminate\Foundation\Application::handle($request, $type, $catch);
}
/**
* Determine if middleware has been disabled for the application.
*
* @return bool
* @static
*/
public static function shouldSkipMiddleware()
{
return \Illuminate\Foundation\Application::shouldSkipMiddleware();
}
/**
* Determine if the application configuration is cached.
*
* @return bool
* @static
*/
public static function configurationIsCached()
{
return \Illuminate\Foundation\Application::configurationIsCached();
}
/**
* Get the path to the configuration cache file.
*
* @return string
* @static
*/
public static function getCachedConfigPath()
{
return \Illuminate\Foundation\Application::getCachedConfigPath();
}
/**
* Determine if the application routes are cached.
*
* @return bool
* @static
*/
public static function routesAreCached()
{
return \Illuminate\Foundation\Application::routesAreCached();
}
/**
* Get the path to the routes cache file.
*
* @return string
* @static
*/
public static function getCachedRoutesPath()
{
return \Illuminate\Foundation\Application::getCachedRoutesPath();
}
/**
* Get the path to the cached "compiled.php" file.
*
* @return string
* @static
*/
public static function getCachedCompilePath()
{
return \Illuminate\Foundation\Application::getCachedCompilePath();
}
/**
* Get the path to the cached services.php file.
*
* @return string
* @static
*/
public static function getCachedServicesPath()
{
return \Illuminate\Foundation\Application::getCachedServicesPath();
}
/**
* Determine if the application is currently down for maintenance.
*
* @return bool
* @static
*/
public static function isDownForMaintenance()
{
return \Illuminate\Foundation\Application::isDownForMaintenance();
}
/**
* Throw an HttpException with the given data.
*
* @param int $code
* @param string $message
* @param array $headers
* @return void
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* @static
*/
public static function abort($code, $message = '', $headers = array())
{
\Illuminate\Foundation\Application::abort($code, $message, $headers);
}
/**
* Register a terminating callback with the application.
*
* @param \Closure $callback
* @return $this
* @static
*/
public static function terminating($callback)
{
return \Illuminate\Foundation\Application::terminating($callback);
}
/**
* Terminate the application.
*
* @return void
* @static
*/
public static function terminate()
{
\Illuminate\Foundation\Application::terminate();
}
/**
* Get the service providers that have been loaded.
*
* @return array
* @static
*/
public static function getLoadedProviders()
{
return \Illuminate\Foundation\Application::getLoadedProviders();
}
/**
* Get the application's deferred services.
*
* @return array
* @static
*/
public static function getDeferredServices()
{
return \Illuminate\Foundation\Application::getDeferredServices();
}
/**
* Set the application's deferred services.
*
* @param array $services
* @return void
* @static
*/
public static function setDeferredServices($services)
{
\Illuminate\Foundation\Application::setDeferredServices($services);
}
/**
* Add an array of services to the application's deferred services.
*
* @param array $services
* @return void
* @static
*/
public static function addDeferredServices($services)
{
\Illuminate\Foundation\Application::addDeferredServices($services);
}
/**
* Determine if the given service is a deferred service.
*
* @param string $service
* @return bool
* @static
*/
public static function isDeferredService($service)
{
return \Illuminate\Foundation\Application::isDeferredService($service);
}
/**
* Define a callback to be used to configure Monolog.
*
* @param callable $callback
* @return $this
* @static
*/
public static function configureMonologUsing($callback)
{
return \Illuminate\Foundation\Application::configureMonologUsing($callback);
}
/**
* Determine if the application has a custom Monolog configurator.
*
* @return bool
* @static
*/
public static function hasMonologConfigurator()
{
return \Illuminate\Foundation\Application::hasMonologConfigurator();
}
/**
* Get the custom Monolog configurator for the application.
*
* @return callable
* @static
*/
public static function getMonologConfigurator()
{
return \Illuminate\Foundation\Application::getMonologConfigurator();
}
/**
* 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);
}
/**
* Determine if application locale is the given locale.
*
* @param string $locale
* @return bool
* @static
*/
public static function isLocale($locale)
{
return \Illuminate\Foundation\Application::isLocale($locale);
}
/**
* Register the core class aliases in the container.
*
* @return void
* @static
*/
public static function registerCoreContainerAliases()
{
\Illuminate\Foundation\Application::registerCoreContainerAliases();
}
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
* @static
*/
public static function flush()
{
\Illuminate\Foundation\Application::flush();
}
/**
* Get the application namespace.
*
* @return string
* @throws \RuntimeException
* @static
*/
public static function getNamespace()
{
return \Illuminate\Foundation\Application::getNamespace();
}
/**
* Define a contextual binding.
*
* @param string $concrete
* @return \Illuminate\Contracts\Container\ContextualBindingBuilder
* @static
*/
public static function when($concrete)
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::when($concrete);
}
/**
* Determine if the given abstract type has been resolved.
*
* @param string $abstract
* @return bool
* @static
*/
public static function resolved($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::resolved($abstract);
}
/**
* Determine if a given string is an alias.
*
* @param string $name
* @return bool
* @static
*/
public static function isAlias($name)
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::isAlias($name);
}
/**
* Register a binding with the container.
*
* @param string|array $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);
}
/**
* Add a contextual binding to the container.
*
* @param string $concrete
* @param string $abstract
* @param \Closure|string $implementation
* @return void
* @static
*/
public static function addContextualBinding($concrete, $abstract, $implementation)
{
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::addContextualBinding($concrete, $abstract, $implementation);
}
/**
* Register a binding if it hasn't already been registered.
*
* @param string $abstract
* @param \Closure|string|null $concrete
* @param bool $shared
* @return void
* @static
*/
public static function bindIf($abstract, $concrete = null, $shared = false)
{
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
}
/**
* Register a shared binding in the container.
*
* @param string|array $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
* @throws \InvalidArgumentException
* @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);
}
/**
* Assign a set of tags to a given binding.
*
* @param array|string $abstracts
* @param array|mixed $tags
* @return void
* @static
*/
public static function tag($abstracts, $tags)
{
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::tag($abstracts, $tags);
}
/**
* Resolve all of the bindings for a given tag.
*
* @param string $tag
* @return array
* @static
*/
public static function tagged($tag)
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::tagged($tag);
}
/**
* Alias a type to a different 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);
}
/**
* Bind a new callback to an abstract's rebind event.
*
* @param string $abstract
* @param \Closure $callback
* @return mixed
* @static
*/
public static function rebinding($abstract, $callback)
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
}
/**
* Refresh an instance on the given target and method.
*
* @param string $abstract
* @param mixed $target
* @param string $method
* @return mixed
* @static
*/
public static function refresh($abstract, $target, $method)
{
//Method inherited from \Illuminate\Container\Container