-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ide_helper.php
5896 lines (5407 loc) · 179 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 Lumen (5.5.2) (Laravel Components 5.5.*) on 2017-11-02.
*
* @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 {
/**
* Bootstrap the router instance.
*
* @return void
* @static
*/
public static function bootstrapRouter()
{
\Laravel\Lumen\Application::bootstrapRouter();
}
/**
* Get the version number of the application.
*
* @return string
* @static
*/
public static function version()
{
return \Laravel\Lumen\Application::version();
}
/**
* Determine if the application is currently down for maintenance.
*
* @return bool
* @static
*/
public static function isDownForMaintenance()
{
return \Laravel\Lumen\Application::isDownForMaintenance();
}
/**
* Get or check the current application environment.
*
* @param mixed
* @return string
* @static
*/
public static function environment()
{
return \Laravel\Lumen\Application::environment();
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function register($provider)
{
return \Laravel\Lumen\Application::register($provider);
}
/**
* Register a deferred provider and service.
*
* @param string $provider
* @return void
* @static
*/
public static function registerDeferredProvider($provider)
{
\Laravel\Lumen\Application::registerDeferredProvider($provider);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function make($abstract, $parameters = array())
{
return \Laravel\Lumen\Application::make($abstract, $parameters);
}
/**
* Define a callback to be used to configure Monolog.
*
* @param callable $callback
* @return $this
* @static
*/
public static function configureMonologUsing($callback)
{
return \Laravel\Lumen\Application::configureMonologUsing($callback);
}
/**
* Configure and load the given component and provider.
*
* @param string $config
* @param array|string $providers
* @param string|null $return
* @return mixed
* @static
*/
public static function loadComponent($config, $providers, $return = null)
{
return \Laravel\Lumen\Application::loadComponent($config, $providers, $return);
}
/**
* Load a configuration file into the application.
*
* @param string $name
* @return void
* @static
*/
public static function configure($name)
{
\Laravel\Lumen\Application::configure($name);
}
/**
* Get the path to the given configuration file.
*
* If no name is provided, then we'll return the path to the config folder.
*
* @param string|null $name
* @return string
* @static
*/
public static function getConfigurationPath($name = null)
{
return \Laravel\Lumen\Application::getConfigurationPath($name);
}
/**
* Register the facades for the application.
*
* @param bool $aliases
* @param array $userAliases
* @return void
* @static
*/
public static function withFacades($aliases = true, $userAliases = array())
{
\Laravel\Lumen\Application::withFacades($aliases, $userAliases);
}
/**
* Register the aliases for the application.
*
* @param array $userAliases
* @return void
* @static
*/
public static function withAliases($userAliases = array())
{
\Laravel\Lumen\Application::withAliases($userAliases);
}
/**
* Load the Eloquent library for the application.
*
* @return void
* @static
*/
public static function withEloquent()
{
\Laravel\Lumen\Application::withEloquent();
}
/**
* Get the path to the application "app" directory.
*
* @return string
* @static
*/
public static function path()
{
return \Laravel\Lumen\Application::path();
}
/**
* Get the base path for the application.
*
* @param string|null $path
* @return string
* @static
*/
public static function basePath($path = null)
{
return \Laravel\Lumen\Application::basePath($path);
}
/**
* Get the path to the database directory.
*
* @param string $path
* @return string
* @static
*/
public static function databasePath($path = '')
{
return \Laravel\Lumen\Application::databasePath($path);
}
/**
* Get the storage path for the application.
*
* @param string|null $path
* @return string
* @static
*/
public static function storagePath($path = '')
{
return \Laravel\Lumen\Application::storagePath($path);
}
/**
* Get the path to the resources directory.
*
* @param string|null $path
* @return string
* @static
*/
public static function resourcePath($path = '')
{
return \Laravel\Lumen\Application::resourcePath($path);
}
/**
* Determine if the application is running in the console.
*
* @return bool
* @static
*/
public static function runningInConsole()
{
return \Laravel\Lumen\Application::runningInConsole();
}
/**
* Determine if we are running unit tests.
*
* @return bool
* @static
*/
public static function runningUnitTests()
{
return \Laravel\Lumen\Application::runningUnitTests();
}
/**
* Prepare the application to execute a console command.
*
* @param bool $aliases
* @return void
* @static
*/
public static function prepareForConsoleCommand($aliases = true)
{
\Laravel\Lumen\Application::prepareForConsoleCommand($aliases);
}
/**
* Get the application namespace.
*
* @return string
* @throws \RuntimeException
* @static
*/
public static function getNamespace()
{
return \Laravel\Lumen\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 \Laravel\Lumen\Application::when($concrete);
}
/**
* 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 \Laravel\Lumen\Application::bound($abstract);
}
/**
* Returns true if the container can return an entry for the given identifier.
*
* Returns false otherwise.
*
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
* It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
*
* @param string $id Identifier of the entry to look for.
* @return bool
* @static
*/
public static function has($id)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::has($id);
}
/**
* 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 \Laravel\Lumen\Application::resolved($abstract);
}
/**
* Determine if a given type is shared.
*
* @param string $abstract
* @return bool
* @static
*/
public static function isShared($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::isShared($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 \Laravel\Lumen\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
\Laravel\Lumen\Application::bind($abstract, $concrete, $shared);
}
/**
* Determine if the container has a method binding.
*
* @param string $method
* @return bool
* @static
*/
public static function hasMethodBinding($method)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::hasMethodBinding($method);
}
/**
* Bind a callback to resolve with Container::call.
*
* @param string $method
* @param \Closure $callback
* @return void
* @static
*/
public static function bindMethod($method, $callback)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::bindMethod($method, $callback);
}
/**
* Get the method binding for the given method.
*
* @param string $method
* @param mixed $instance
* @return mixed
* @static
*/
public static function callMethodBinding($method, $instance)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::callMethodBinding($method, $instance);
}
/**
* 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
\Laravel\Lumen\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
\Laravel\Lumen\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
\Laravel\Lumen\Application::singleton($abstract, $concrete);
}
/**
* "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
\Laravel\Lumen\Application::extend($abstract, $closure);
}
/**
* Register an existing instance as shared in the container.
*
* @param string $abstract
* @param mixed $instance
* @return mixed
* @static
*/
public static function instance($abstract, $instance)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\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
\Laravel\Lumen\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 \Laravel\Lumen\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
\Laravel\Lumen\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 \Laravel\Lumen\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
return \Laravel\Lumen\Application::refresh($abstract, $target, $method);
}
/**
* Wrap the given closure such that its dependencies will be injected when executed.
*
* @param \Closure $callback
* @param array $parameters
* @return \Closure
* @static
*/
public static function wrap($callback, $parameters = array())
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::wrap($callback, $parameters);
}
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
* @static
*/
public static function call($callback, $parameters = array(), $defaultMethod = null)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::call($callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
* @param string $abstract
* @return \Closure
* @static
*/
public static function factory($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::factory($abstract);
}
/**
* An alias function name for make().
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function makeWith($abstract, $parameters = array())
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::makeWith($abstract, $parameters);
}
/**
* Finds an entry of the container by its identifier and returns it.
*
* @param string $id Identifier of the entry to look for.
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
* @throws ContainerExceptionInterface Error while retrieving the entry.
* @return mixed Entry.
* @static
*/
public static function get($id)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::get($id);
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @return mixed
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @static
*/
public static function build($concrete)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::build($concrete);
}
/**
* Register a new resolving callback.
*
* @param string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function resolving($abstract, $callback = null)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::resolving($abstract, $callback);
}
/**
* Register a new after resolving callback for all types.
*
* @param string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function afterResolving($abstract, $callback = null)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::afterResolving($abstract, $callback);
}
/**
* Get the container's bindings.
*
* @return array
* @static
*/
public static function getBindings()
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getBindings();
}
/**
* Get the alias for an abstract if available.
*
* @param string $abstract
* @return string
* @throws \LogicException
* @static
*/
public static function getAlias($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getAlias($abstract);
}
/**
* Remove all of the extender callbacks for a given type.
*
* @param string $abstract
* @return void
* @static
*/
public static function forgetExtenders($abstract)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetExtenders($abstract);
}
/**
* Remove a resolved instance from the instance cache.
*
* @param string $abstract
* @return void
* @static
*/
public static function forgetInstance($abstract)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetInstance($abstract);
}
/**
* Clear all of the instances from the container.
*
* @return void
* @static
*/
public static function forgetInstances()
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetInstances();
}
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
* @static
*/
public static function flush()
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::flush();
}
/**
* Set the globally available instance of the container.
*
* @return static
* @static
*/
public static function getInstance()
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getInstance();
}
/**
* Set the shared instance of the container.
*
* @param \Illuminate\Contracts\Container\Container|null $container
* @return static
* @static
*/
public static function setInstance($container = null)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::setInstance($container);
}
/**
* Determine if a given offset exists.
*
* @param string $key
* @return bool
* @static
*/
public static function offsetExists($key)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\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 \Laravel\Lumen\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
\Laravel\Lumen\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
\Laravel\Lumen\Application::offsetUnset($key);
}
/**
* Add new middleware to the application.
*
* @param \Closure|array $middleware
* @return $this
* @static
*/
public static function middleware($middleware)
{
return \Laravel\Lumen\Application::middleware($middleware);
}
/**
* Define the route middleware for the application.
*
* @param array $middleware
* @return $this
* @static
*/
public static function routeMiddleware($middleware)
{
return \Laravel\Lumen\Application::routeMiddleware($middleware);
}
/**
* {@inheritdoc}
*
* @static
*/
public static function handle($request)
{
return \Laravel\Lumen\Application::handle($request);
}
/**
* Run the application and send the response.
*
* @param \Laravel\Lumen\SymfonyRequest|null $request
* @return void
* @static
*/
public static function run($request = null)
{
\Laravel\Lumen\Application::run($request);
}
/**
* Dispatch the incoming request.
*
* @param \Laravel\Lumen\SymfonyRequest|null $request
* @return \Laravel\Lumen\Response
* @static
*/
public static function dispatch($request = null)
{
return \Laravel\Lumen\Application::dispatch($request);
}
/**
* Set the FastRoute dispatcher instance.
*
* @param \FastRoute\Dispatcher $dispatcher
* @return void
* @static
*/
public static function setDispatcher($dispatcher)
{
\Laravel\Lumen\Application::setDispatcher($dispatcher);
}
/**
* Prepare the response for sending.
*
* @param mixed $response
* @return \Laravel\Lumen\Response
* @static
*/
public static function prepareResponse($response)
{
return \Laravel\Lumen\Application::prepareResponse($response);
}
/**
* 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())
{
\Laravel\Lumen\Application::abort($code, $message, $headers);
}
}
class Auth {
/**
* Attempt to get the guard from the local cache.
*
* @param string $name
* @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
* @static
*/
public static function guard($name = null)
{
return \Illuminate\Auth\AuthManager::guard($name);
}
/**
* Create a session based authentication guard.
*
* @param string $name
* @param array $config
* @return \Illuminate\Auth\SessionGuard
* @static
*/
public static function createSessionDriver($name, $config)
{
return \Illuminate\Auth\AuthManager::createSessionDriver($name, $config);
}
/**
* Create a token based authentication guard.
*
* @param string $name
* @param array $config
* @return \Illuminate\Auth\TokenGuard
* @static
*/
public static function createTokenDriver($name, $config)
{
return \Illuminate\Auth\AuthManager::createTokenDriver($name, $config);
}
/**
* Get the default authentication driver name.
*
* @return string
* @static
*/
public static function getDefaultDriver()
{
return \Illuminate\Auth\AuthManager::getDefaultDriver();
}
/**
* Set the default guard driver the factory should serve.
*
* @param string $name
* @return void
* @static
*/
public static function shouldUse($name)
{
\Illuminate\Auth\AuthManager::shouldUse($name);