You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_ide_helper.php 356KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554
  1. <?php
  2. /**
  3. * An helper file for Laravel 5, to provide autocomplete information to your IDE
  4. * Generated for Laravel 5.0.27 on 2015-04-08.
  5. *
  6. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  7. * @see https://github.com/barryvdh/laravel-ide-helper
  8. */
  9. namespace {
  10. exit("This file should not be included, only analyzed by your IDE");
  11. class App extends \Illuminate\Support\Facades\App{
  12. /**
  13. * Get the version number of the application.
  14. *
  15. * @return string
  16. * @static
  17. */
  18. public static function version(){
  19. return \Illuminate\Foundation\Application::version();
  20. }
  21. /**
  22. * Run the given array of bootstrap classes.
  23. *
  24. * @param array $bootstrappers
  25. * @return void
  26. * @static
  27. */
  28. public static function bootstrapWith($bootstrappers){
  29. \Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
  30. }
  31. /**
  32. * Register a callback to run after loading the environment.
  33. *
  34. * @param \Closure $callback
  35. * @return void
  36. * @static
  37. */
  38. public static function afterLoadingEnvironment($callback){
  39. \Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
  40. }
  41. /**
  42. * Register a callback to run before a bootstrapper.
  43. *
  44. * @param string $bootstrapper
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function beforeBootstrapping($bootstrapper, $callback){
  50. \Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
  51. }
  52. /**
  53. * Register a callback to run after a bootstrapper.
  54. *
  55. * @param string $bootstrapper
  56. * @param \Closure $callback
  57. * @return void
  58. * @static
  59. */
  60. public static function afterBootstrapping($bootstrapper, $callback){
  61. \Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
  62. }
  63. /**
  64. * Determine if the application has been bootstrapped before.
  65. *
  66. * @return bool
  67. * @static
  68. */
  69. public static function hasBeenBootstrapped(){
  70. return \Illuminate\Foundation\Application::hasBeenBootstrapped();
  71. }
  72. /**
  73. * Set the base path for the application.
  74. *
  75. * @param string $basePath
  76. * @return $this
  77. * @static
  78. */
  79. public static function setBasePath($basePath){
  80. return \Illuminate\Foundation\Application::setBasePath($basePath);
  81. }
  82. /**
  83. * Get the path to the application "app" directory.
  84. *
  85. * @return string
  86. * @static
  87. */
  88. public static function path(){
  89. return \Illuminate\Foundation\Application::path();
  90. }
  91. /**
  92. * Get the base path of the Laravel installation.
  93. *
  94. * @return string
  95. * @static
  96. */
  97. public static function basePath(){
  98. return \Illuminate\Foundation\Application::basePath();
  99. }
  100. /**
  101. * Get the path to the application configuration files.
  102. *
  103. * @return string
  104. * @static
  105. */
  106. public static function configPath(){
  107. return \Illuminate\Foundation\Application::configPath();
  108. }
  109. /**
  110. * Get the path to the database directory.
  111. *
  112. * @return string
  113. * @static
  114. */
  115. public static function databasePath(){
  116. return \Illuminate\Foundation\Application::databasePath();
  117. }
  118. /**
  119. * Set the database directory.
  120. *
  121. * @param string $path
  122. * @return $this
  123. * @static
  124. */
  125. public static function useDatabasePath($path){
  126. return \Illuminate\Foundation\Application::useDatabasePath($path);
  127. }
  128. /**
  129. * Get the path to the language files.
  130. *
  131. * @return string
  132. * @static
  133. */
  134. public static function langPath(){
  135. return \Illuminate\Foundation\Application::langPath();
  136. }
  137. /**
  138. * Get the path to the public / web directory.
  139. *
  140. * @return string
  141. * @static
  142. */
  143. public static function publicPath(){
  144. return \Illuminate\Foundation\Application::publicPath();
  145. }
  146. /**
  147. * Get the path to the storage directory.
  148. *
  149. * @return string
  150. * @static
  151. */
  152. public static function storagePath(){
  153. return \Illuminate\Foundation\Application::storagePath();
  154. }
  155. /**
  156. * Set the storage directory.
  157. *
  158. * @param string $path
  159. * @return $this
  160. * @static
  161. */
  162. public static function useStoragePath($path){
  163. return \Illuminate\Foundation\Application::useStoragePath($path);
  164. }
  165. /**
  166. * Set the environment file to be loaded during bootstrapping.
  167. *
  168. * @param string $file
  169. * @return $this
  170. * @static
  171. */
  172. public static function loadEnvironmentFrom($file){
  173. return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
  174. }
  175. /**
  176. * Get the environment file the application is using.
  177. *
  178. * @return string
  179. * @static
  180. */
  181. public static function environmentFile(){
  182. return \Illuminate\Foundation\Application::environmentFile();
  183. }
  184. /**
  185. * Get or check the current application environment.
  186. *
  187. * @param mixed
  188. * @return string
  189. * @static
  190. */
  191. public static function environment(){
  192. return \Illuminate\Foundation\Application::environment();
  193. }
  194. /**
  195. * Determine if application is in local environment.
  196. *
  197. * @return bool
  198. * @static
  199. */
  200. public static function isLocal(){
  201. return \Illuminate\Foundation\Application::isLocal();
  202. }
  203. /**
  204. * Detect the application's current environment.
  205. *
  206. * @param \Closure $callback
  207. * @return string
  208. * @static
  209. */
  210. public static function detectEnvironment($callback){
  211. return \Illuminate\Foundation\Application::detectEnvironment($callback);
  212. }
  213. /**
  214. * Determine if we are running in the console.
  215. *
  216. * @return bool
  217. * @static
  218. */
  219. public static function runningInConsole(){
  220. return \Illuminate\Foundation\Application::runningInConsole();
  221. }
  222. /**
  223. * Determine if we are running unit tests.
  224. *
  225. * @return bool
  226. * @static
  227. */
  228. public static function runningUnitTests(){
  229. return \Illuminate\Foundation\Application::runningUnitTests();
  230. }
  231. /**
  232. * Register all of the configured providers.
  233. *
  234. * @return void
  235. * @static
  236. */
  237. public static function registerConfiguredProviders(){
  238. \Illuminate\Foundation\Application::registerConfiguredProviders();
  239. }
  240. /**
  241. * Register a service provider with the application.
  242. *
  243. * @param \Illuminate\Support\ServiceProvider|string $provider
  244. * @param array $options
  245. * @param bool $force
  246. * @return \Illuminate\Support\ServiceProvider
  247. * @static
  248. */
  249. public static function register($provider, $options = array(), $force = false){
  250. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  251. }
  252. /**
  253. * Get the registered service provider instance if it exists.
  254. *
  255. * @param \Illuminate\Support\ServiceProvider|string $provider
  256. * @return \Illuminate\Support\ServiceProvider|null
  257. * @static
  258. */
  259. public static function getProvider($provider){
  260. return \Illuminate\Foundation\Application::getProvider($provider);
  261. }
  262. /**
  263. * Resolve a service provider instance from the class name.
  264. *
  265. * @param string $provider
  266. * @return \Illuminate\Support\ServiceProvider
  267. * @static
  268. */
  269. public static function resolveProviderClass($provider){
  270. return \Illuminate\Foundation\Application::resolveProviderClass($provider);
  271. }
  272. /**
  273. * Load and boot all of the remaining deferred providers.
  274. *
  275. * @return void
  276. * @static
  277. */
  278. public static function loadDeferredProviders(){
  279. \Illuminate\Foundation\Application::loadDeferredProviders();
  280. }
  281. /**
  282. * Load the provider for a deferred service.
  283. *
  284. * @param string $service
  285. * @return void
  286. * @static
  287. */
  288. public static function loadDeferredProvider($service){
  289. \Illuminate\Foundation\Application::loadDeferredProvider($service);
  290. }
  291. /**
  292. * Register a deferred provider and service.
  293. *
  294. * @param string $provider
  295. * @param string $service
  296. * @return void
  297. * @static
  298. */
  299. public static function registerDeferredProvider($provider, $service = null){
  300. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  301. }
  302. /**
  303. * Resolve the given type from the container.
  304. *
  305. * (Overriding Container::make)
  306. *
  307. * @param string $abstract
  308. * @param array $parameters
  309. * @return mixed
  310. * @static
  311. */
  312. public static function make($abstract, $parameters = array()){
  313. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  314. }
  315. /**
  316. * Determine if the given abstract type has been bound.
  317. *
  318. * (Overriding Container::bound)
  319. *
  320. * @param string $abstract
  321. * @return bool
  322. * @static
  323. */
  324. public static function bound($abstract){
  325. return \Illuminate\Foundation\Application::bound($abstract);
  326. }
  327. /**
  328. * Determine if the application has booted.
  329. *
  330. * @return bool
  331. * @static
  332. */
  333. public static function isBooted(){
  334. return \Illuminate\Foundation\Application::isBooted();
  335. }
  336. /**
  337. * Boot the application's service providers.
  338. *
  339. * @return void
  340. * @static
  341. */
  342. public static function boot(){
  343. \Illuminate\Foundation\Application::boot();
  344. }
  345. /**
  346. * Register a new boot listener.
  347. *
  348. * @param mixed $callback
  349. * @return void
  350. * @static
  351. */
  352. public static function booting($callback){
  353. \Illuminate\Foundation\Application::booting($callback);
  354. }
  355. /**
  356. * Register a new "booted" listener.
  357. *
  358. * @param mixed $callback
  359. * @return void
  360. * @static
  361. */
  362. public static function booted($callback){
  363. \Illuminate\Foundation\Application::booted($callback);
  364. }
  365. /**
  366. * {@inheritdoc}
  367. *
  368. * @static
  369. */
  370. public static function handle($request, $type = 1, $catch = true){
  371. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  372. }
  373. /**
  374. * Determine if the application configuration is cached.
  375. *
  376. * @return bool
  377. * @static
  378. */
  379. public static function configurationIsCached(){
  380. return \Illuminate\Foundation\Application::configurationIsCached();
  381. }
  382. /**
  383. * Get the path to the configuration cache file.
  384. *
  385. * @return string
  386. * @static
  387. */
  388. public static function getCachedConfigPath(){
  389. return \Illuminate\Foundation\Application::getCachedConfigPath();
  390. }
  391. /**
  392. * Determine if the application routes are cached.
  393. *
  394. * @return bool
  395. * @static
  396. */
  397. public static function routesAreCached(){
  398. return \Illuminate\Foundation\Application::routesAreCached();
  399. }
  400. /**
  401. * Get the path to the routes cache file.
  402. *
  403. * @return string
  404. * @static
  405. */
  406. public static function getCachedRoutesPath(){
  407. return \Illuminate\Foundation\Application::getCachedRoutesPath();
  408. }
  409. /**
  410. * Get the path to the cached "compiled.php" file.
  411. *
  412. * @return string
  413. * @static
  414. */
  415. public static function getCachedCompilePath(){
  416. return \Illuminate\Foundation\Application::getCachedCompilePath();
  417. }
  418. /**
  419. * Get the path to the cached services.json file.
  420. *
  421. * @return string
  422. * @static
  423. */
  424. public static function getCachedServicesPath(){
  425. return \Illuminate\Foundation\Application::getCachedServicesPath();
  426. }
  427. /**
  428. * Determine if vendor path is writable.
  429. *
  430. * @return bool
  431. * @static
  432. */
  433. public static function vendorIsWritableForOptimizations(){
  434. return \Illuminate\Foundation\Application::vendorIsWritableForOptimizations();
  435. }
  436. /**
  437. * Determines if storage directory should be used for optimizations.
  438. *
  439. * @param bool $value
  440. * @return $this
  441. * @static
  442. */
  443. public static function useStoragePathForOptimizations($value = true){
  444. return \Illuminate\Foundation\Application::useStoragePathForOptimizations($value);
  445. }
  446. /**
  447. * Determine if the application is currently down for maintenance.
  448. *
  449. * @return bool
  450. * @static
  451. */
  452. public static function isDownForMaintenance(){
  453. return \Illuminate\Foundation\Application::isDownForMaintenance();
  454. }
  455. /**
  456. * Register a maintenance mode event listener.
  457. *
  458. * @param \Closure $callback
  459. * @return void
  460. * @static
  461. */
  462. public static function down($callback){
  463. \Illuminate\Foundation\Application::down($callback);
  464. }
  465. /**
  466. * Throw an HttpException with the given data.
  467. *
  468. * @param int $code
  469. * @param string $message
  470. * @param array $headers
  471. * @return void
  472. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  473. * @static
  474. */
  475. public static function abort($code, $message = '', $headers = array()){
  476. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  477. }
  478. /**
  479. * Register a terminating callback with the application.
  480. *
  481. * @param \Closure $callback
  482. * @return $this
  483. * @static
  484. */
  485. public static function terminating($callback){
  486. return \Illuminate\Foundation\Application::terminating($callback);
  487. }
  488. /**
  489. * Terminate the application.
  490. *
  491. * @return void
  492. * @static
  493. */
  494. public static function terminate(){
  495. \Illuminate\Foundation\Application::terminate();
  496. }
  497. /**
  498. * Get the service providers that have been loaded.
  499. *
  500. * @return array
  501. * @static
  502. */
  503. public static function getLoadedProviders(){
  504. return \Illuminate\Foundation\Application::getLoadedProviders();
  505. }
  506. /**
  507. * Set the application's deferred services.
  508. *
  509. * @param array $services
  510. * @return void
  511. * @static
  512. */
  513. public static function setDeferredServices($services){
  514. \Illuminate\Foundation\Application::setDeferredServices($services);
  515. }
  516. /**
  517. * Determine if the given service is a deferred service.
  518. *
  519. * @param string $service
  520. * @return bool
  521. * @static
  522. */
  523. public static function isDeferredService($service){
  524. return \Illuminate\Foundation\Application::isDeferredService($service);
  525. }
  526. /**
  527. * Get the current application locale.
  528. *
  529. * @return string
  530. * @static
  531. */
  532. public static function getLocale(){
  533. return \Illuminate\Foundation\Application::getLocale();
  534. }
  535. /**
  536. * Set the current application locale.
  537. *
  538. * @param string $locale
  539. * @return void
  540. * @static
  541. */
  542. public static function setLocale($locale){
  543. \Illuminate\Foundation\Application::setLocale($locale);
  544. }
  545. /**
  546. * Register the core class aliases in the container.
  547. *
  548. * @return void
  549. * @static
  550. */
  551. public static function registerCoreContainerAliases(){
  552. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  553. }
  554. /**
  555. * Flush the container of all bindings and resolved instances.
  556. *
  557. * @return void
  558. * @static
  559. */
  560. public static function flush(){
  561. \Illuminate\Foundation\Application::flush();
  562. }
  563. /**
  564. * Define a contextual binding.
  565. *
  566. * @param string $concrete
  567. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  568. * @static
  569. */
  570. public static function when($concrete){
  571. //Method inherited from \Illuminate\Container\Container
  572. return \Illuminate\Foundation\Application::when($concrete);
  573. }
  574. /**
  575. * Determine if the given abstract type has been resolved.
  576. *
  577. * @param string $abstract
  578. * @return bool
  579. * @static
  580. */
  581. public static function resolved($abstract){
  582. //Method inherited from \Illuminate\Container\Container
  583. return \Illuminate\Foundation\Application::resolved($abstract);
  584. }
  585. /**
  586. * Determine if a given string is an alias.
  587. *
  588. * @param string $name
  589. * @return bool
  590. * @static
  591. */
  592. public static function isAlias($name){
  593. //Method inherited from \Illuminate\Container\Container
  594. return \Illuminate\Foundation\Application::isAlias($name);
  595. }
  596. /**
  597. * Register a binding with the container.
  598. *
  599. * @param string|array $abstract
  600. * @param \Closure|string|null $concrete
  601. * @param bool $shared
  602. * @return void
  603. * @static
  604. */
  605. public static function bind($abstract, $concrete = null, $shared = false){
  606. //Method inherited from \Illuminate\Container\Container
  607. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  608. }
  609. /**
  610. * Add a contextual binding to the container.
  611. *
  612. * @param string $concrete
  613. * @param string $abstract
  614. * @param \Closure|string $implementation
  615. * @static
  616. */
  617. public static function addContextualBinding($concrete, $abstract, $implementation){
  618. //Method inherited from \Illuminate\Container\Container
  619. return \Illuminate\Foundation\Application::addContextualBinding($concrete, $abstract, $implementation);
  620. }
  621. /**
  622. * Register a binding if it hasn't already been registered.
  623. *
  624. * @param string $abstract
  625. * @param \Closure|string|null $concrete
  626. * @param bool $shared
  627. * @return void
  628. * @static
  629. */
  630. public static function bindIf($abstract, $concrete = null, $shared = false){
  631. //Method inherited from \Illuminate\Container\Container
  632. \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  633. }
  634. /**
  635. * Register a shared binding in the container.
  636. *
  637. * @param string $abstract
  638. * @param \Closure|string|null $concrete
  639. * @return void
  640. * @static
  641. */
  642. public static function singleton($abstract, $concrete = null){
  643. //Method inherited from \Illuminate\Container\Container
  644. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  645. }
  646. /**
  647. * Wrap a Closure such that it is shared.
  648. *
  649. * @param \Closure $closure
  650. * @return \Closure
  651. * @static
  652. */
  653. public static function share($closure){
  654. //Method inherited from \Illuminate\Container\Container
  655. return \Illuminate\Foundation\Application::share($closure);
  656. }
  657. /**
  658. * Bind a shared Closure into the container.
  659. *
  660. * @param string $abstract
  661. * @param \Closure $closure
  662. * @return void
  663. * @static
  664. */
  665. public static function bindShared($abstract, $closure){
  666. //Method inherited from \Illuminate\Container\Container
  667. \Illuminate\Foundation\Application::bindShared($abstract, $closure);
  668. }
  669. /**
  670. * "Extend" an abstract type in the container.
  671. *
  672. * @param string $abstract
  673. * @param \Closure $closure
  674. * @return void
  675. * @throws \InvalidArgumentException
  676. * @static
  677. */
  678. public static function extend($abstract, $closure){
  679. //Method inherited from \Illuminate\Container\Container
  680. \Illuminate\Foundation\Application::extend($abstract, $closure);
  681. }
  682. /**
  683. * Register an existing instance as shared in the container.
  684. *
  685. * @param string $abstract
  686. * @param mixed $instance
  687. * @return void
  688. * @static
  689. */
  690. public static function instance($abstract, $instance){
  691. //Method inherited from \Illuminate\Container\Container
  692. \Illuminate\Foundation\Application::instance($abstract, $instance);
  693. }
  694. /**
  695. * Assign a set of tags to a given binding.
  696. *
  697. * @param array|string $abstracts
  698. * @param array|mixed $tags
  699. * @return void
  700. * @static
  701. */
  702. public static function tag($abstracts, $tags){
  703. //Method inherited from \Illuminate\Container\Container
  704. \Illuminate\Foundation\Application::tag($abstracts, $tags);
  705. }
  706. /**
  707. * Resolve all of the bindings for a given tag.
  708. *
  709. * @param string $tag
  710. * @return array
  711. * @static
  712. */
  713. public static function tagged($tag){
  714. //Method inherited from \Illuminate\Container\Container
  715. return \Illuminate\Foundation\Application::tagged($tag);
  716. }
  717. /**
  718. * Alias a type to a different name.
  719. *
  720. * @param string $abstract
  721. * @param string $alias
  722. * @return void
  723. * @static
  724. */
  725. public static function alias($abstract, $alias){
  726. //Method inherited from \Illuminate\Container\Container
  727. \Illuminate\Foundation\Application::alias($abstract, $alias);
  728. }
  729. /**
  730. * Bind a new callback to an abstract's rebind event.
  731. *
  732. * @param string $abstract
  733. * @param \Closure $callback
  734. * @return mixed
  735. * @static
  736. */
  737. public static function rebinding($abstract, $callback){
  738. //Method inherited from \Illuminate\Container\Container
  739. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  740. }
  741. /**
  742. * Refresh an instance on the given target and method.
  743. *
  744. * @param string $abstract
  745. * @param mixed $target
  746. * @param string $method
  747. * @return mixed
  748. * @static
  749. */
  750. public static function refresh($abstract, $target, $method){
  751. //Method inherited from \Illuminate\Container\Container
  752. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  753. }
  754. /**
  755. * Wrap the given closure such that its dependencies will be injected when executed.
  756. *
  757. * @param \Closure $callback
  758. * @param array $parameters
  759. * @return \Closure
  760. * @static
  761. */
  762. public static function wrap($callback, $parameters = array()){
  763. //Method inherited from \Illuminate\Container\Container
  764. return \Illuminate\Foundation\Application::wrap($callback, $parameters);
  765. }
  766. /**
  767. * Call the given Closure / class@method and inject its dependencies.
  768. *
  769. * @param callable|string $callback
  770. * @param array $parameters
  771. * @param string|null $defaultMethod
  772. * @return mixed
  773. * @static
  774. */
  775. public static function call($callback, $parameters = array(), $defaultMethod = null){
  776. //Method inherited from \Illuminate\Container\Container
  777. return \Illuminate\Foundation\Application::call($callback, $parameters, $defaultMethod);
  778. }
  779. /**
  780. * Instantiate a concrete instance of the given type.
  781. *
  782. * @param string $concrete
  783. * @param array $parameters
  784. * @return mixed
  785. * @throws BindingResolutionException
  786. * @static
  787. */
  788. public static function build($concrete, $parameters = array()){
  789. //Method inherited from \Illuminate\Container\Container
  790. return \Illuminate\Foundation\Application::build($concrete, $parameters);
  791. }
  792. /**
  793. * Register a new resolving callback.
  794. *
  795. * @param string $abstract
  796. * @param \Closure $callback
  797. * @return void
  798. * @static
  799. */
  800. public static function resolving($abstract, $callback = null){
  801. //Method inherited from \Illuminate\Container\Container
  802. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  803. }
  804. /**
  805. * Register a new after resolving callback for all types.
  806. *
  807. * @param string $abstract
  808. * @param \Closure $callback
  809. * @return void
  810. * @static
  811. */
  812. public static function afterResolving($abstract, $callback = null){
  813. //Method inherited from \Illuminate\Container\Container
  814. \Illuminate\Foundation\Application::afterResolving($abstract, $callback);
  815. }
  816. /**
  817. * Determine if a given type is shared.
  818. *
  819. * @param string $abstract
  820. * @return bool
  821. * @static
  822. */
  823. public static function isShared($abstract){
  824. //Method inherited from \Illuminate\Container\Container
  825. return \Illuminate\Foundation\Application::isShared($abstract);
  826. }
  827. /**
  828. * Get the container's bindings.
  829. *
  830. * @return array
  831. * @static
  832. */
  833. public static function getBindings(){
  834. //Method inherited from \Illuminate\Container\Container
  835. return \Illuminate\Foundation\Application::getBindings();
  836. }
  837. /**
  838. * Remove a resolved instance from the instance cache.
  839. *
  840. * @param string $abstract
  841. * @return void
  842. * @static
  843. */
  844. public static function forgetInstance($abstract){
  845. //Method inherited from \Illuminate\Container\Container
  846. \Illuminate\Foundation\Application::forgetInstance($abstract);
  847. }
  848. /**
  849. * Clear all of the instances from the container.
  850. *
  851. * @return void
  852. * @static
  853. */
  854. public static function forgetInstances(){
  855. //Method inherited from \Illuminate\Container\Container
  856. \Illuminate\Foundation\Application::forgetInstances();
  857. }
  858. /**
  859. * Set the globally available instance of the container.
  860. *
  861. * @return static
  862. * @static
  863. */
  864. public static function getInstance(){
  865. //Method inherited from \Illuminate\Container\Container
  866. return \Illuminate\Foundation\Application::getInstance();
  867. }
  868. /**
  869. * Set the shared instance of the container.
  870. *
  871. * @param \Illuminate\Contracts\Container\Container $container
  872. * @return void
  873. * @static
  874. */
  875. public static function setInstance($container){
  876. //Method inherited from \Illuminate\Container\Container
  877. \Illuminate\Foundation\Application::setInstance($container);
  878. }
  879. /**
  880. * Determine if a given offset exists.
  881. *
  882. * @param string $key
  883. * @return bool
  884. * @static
  885. */
  886. public static function offsetExists($key){
  887. //Method inherited from \Illuminate\Container\Container
  888. return \Illuminate\Foundation\Application::offsetExists($key);
  889. }
  890. /**
  891. * Get the value at a given offset.
  892. *
  893. * @param string $key
  894. * @return mixed
  895. * @static
  896. */
  897. public static function offsetGet($key){
  898. //Method inherited from \Illuminate\Container\Container
  899. return \Illuminate\Foundation\Application::offsetGet($key);
  900. }
  901. /**
  902. * Set the value at a given offset.
  903. *
  904. * @param string $key
  905. * @param mixed $value
  906. * @return void
  907. * @static
  908. */
  909. public static function offsetSet($key, $value){
  910. //Method inherited from \Illuminate\Container\Container
  911. \Illuminate\Foundation\Application::offsetSet($key, $value);
  912. }
  913. /**
  914. * Unset the value at a given offset.
  915. *
  916. * @param string $key
  917. * @return void
  918. * @static
  919. */
  920. public static function offsetUnset($key){
  921. //Method inherited from \Illuminate\Container\Container
  922. \Illuminate\Foundation\Application::offsetUnset($key);
  923. }
  924. }
  925. class Artisan extends \Illuminate\Support\Facades\Artisan{
  926. /**
  927. * Run the console application.
  928. *
  929. * @param \Symfony\Component\Console\Input\InputInterface $input
  930. * @param \Symfony\Component\Console\Output\OutputInterface $output
  931. * @return int
  932. * @static
  933. */
  934. public static function handle($input, $output = null){
  935. //Method inherited from \Illuminate\Foundation\Console\Kernel
  936. return \App\Console\Kernel::handle($input, $output);
  937. }
  938. /**
  939. * Terminate the application.
  940. *
  941. * @param \Symfony\Component\Console\Input\InputInterface $input
  942. * @param int $status
  943. * @return void
  944. * @static
  945. */
  946. public static function terminate($input, $status){
  947. //Method inherited from \Illuminate\Foundation\Console\Kernel
  948. \App\Console\Kernel::terminate($input, $status);
  949. }
  950. /**
  951. * Run an Artisan console command by name.
  952. *
  953. * @param string $command
  954. * @param array $parameters
  955. * @return int
  956. * @static
  957. */
  958. public static function call($command, $parameters = array()){
  959. //Method inherited from \Illuminate\Foundation\Console\Kernel
  960. return \App\Console\Kernel::call($command, $parameters);
  961. }
  962. /**
  963. * Queue the given console command.
  964. *
  965. * @param string $command
  966. * @param array $parameters
  967. * @return void
  968. * @static
  969. */
  970. public static function queue($command, $parameters = array()){
  971. //Method inherited from \Illuminate\Foundation\Console\Kernel
  972. \App\Console\Kernel::queue($command, $parameters);
  973. }
  974. /**
  975. * Get all of the commands registered with the console.
  976. *
  977. * @return array
  978. * @static
  979. */
  980. public static function all(){
  981. //Method inherited from \Illuminate\Foundation\Console\Kernel
  982. return \App\Console\Kernel::all();
  983. }
  984. /**
  985. * Get the output for the last run command.
  986. *
  987. * @return string
  988. * @static
  989. */
  990. public static function output(){
  991. //Method inherited from \Illuminate\Foundation\Console\Kernel
  992. return \App\Console\Kernel::output();
  993. }
  994. /**
  995. * Bootstrap the application for HTTP requests.
  996. *
  997. * @return void
  998. * @static
  999. */
  1000. public static function bootstrap(){
  1001. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1002. \App\Console\Kernel::bootstrap();
  1003. }
  1004. }
  1005. class Auth extends \Illuminate\Support\Facades\Auth{
  1006. /**
  1007. * Create an instance of the database driver.
  1008. *
  1009. * @return \Illuminate\Auth\Guard
  1010. * @static
  1011. */
  1012. public static function createDatabaseDriver(){
  1013. return \Illuminate\Auth\AuthManager::createDatabaseDriver();
  1014. }
  1015. /**
  1016. * Create an instance of the Eloquent driver.
  1017. *
  1018. * @return \Illuminate\Auth\Guard
  1019. * @static
  1020. */
  1021. public static function createEloquentDriver(){
  1022. return \Illuminate\Auth\AuthManager::createEloquentDriver();
  1023. }
  1024. /**
  1025. * Get the default authentication driver name.
  1026. *
  1027. * @return string
  1028. * @static
  1029. */
  1030. public static function getDefaultDriver(){
  1031. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1032. }
  1033. /**
  1034. * Set the default authentication driver name.
  1035. *
  1036. * @param string $name
  1037. * @return void
  1038. * @static
  1039. */
  1040. public static function setDefaultDriver($name){
  1041. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1042. }
  1043. /**
  1044. * Get a driver instance.
  1045. *
  1046. * @param string $driver
  1047. * @return mixed
  1048. * @static
  1049. */
  1050. public static function driver($driver = null){
  1051. //Method inherited from \Illuminate\Support\Manager
  1052. return \Illuminate\Auth\AuthManager::driver($driver);
  1053. }
  1054. /**
  1055. * Register a custom driver creator Closure.
  1056. *
  1057. * @param string $driver
  1058. * @param \Closure $callback
  1059. * @return $this
  1060. * @static
  1061. */
  1062. public static function extend($driver, $callback){
  1063. //Method inherited from \Illuminate\Support\Manager
  1064. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1065. }
  1066. /**
  1067. * Get all of the created "drivers".
  1068. *
  1069. * @return array
  1070. * @static
  1071. */
  1072. public static function getDrivers(){
  1073. //Method inherited from \Illuminate\Support\Manager
  1074. return \Illuminate\Auth\AuthManager::getDrivers();
  1075. }
  1076. /**
  1077. * Determine if the current user is authenticated.
  1078. *
  1079. * @return bool
  1080. * @static
  1081. */
  1082. public static function check(){
  1083. return \Illuminate\Auth\Guard::check();
  1084. }
  1085. /**
  1086. * Determine if the current user is a guest.
  1087. *
  1088. * @return bool
  1089. * @static
  1090. */
  1091. public static function guest(){
  1092. return \Illuminate\Auth\Guard::guest();
  1093. }
  1094. /**
  1095. * Get the currently authenticated user.
  1096. *
  1097. * @return \App\User|null
  1098. * @static
  1099. */
  1100. public static function user(){
  1101. return \Illuminate\Auth\Guard::user();
  1102. }
  1103. /**
  1104. * Get the ID for the currently authenticated user.
  1105. *
  1106. * @return int|null
  1107. * @static
  1108. */
  1109. public static function id(){
  1110. return \Illuminate\Auth\Guard::id();
  1111. }
  1112. /**
  1113. * Log a user into the application without sessions or cookies.
  1114. *
  1115. * @param array $credentials
  1116. * @return bool
  1117. * @static
  1118. */
  1119. public static function once($credentials = array()){
  1120. return \Illuminate\Auth\Guard::once($credentials);
  1121. }
  1122. /**
  1123. * Validate a user's credentials.
  1124. *
  1125. * @param array $credentials
  1126. * @return bool
  1127. * @static
  1128. */
  1129. public static function validate($credentials = array()){
  1130. return \Illuminate\Auth\Guard::validate($credentials);
  1131. }
  1132. /**
  1133. * Attempt to authenticate using HTTP Basic Auth.
  1134. *
  1135. * @param string $field
  1136. * @return \Symfony\Component\HttpFoundation\Response|null
  1137. * @static
  1138. */
  1139. public static function basic($field = 'email'){
  1140. return \Illuminate\Auth\Guard::basic($field);
  1141. }
  1142. /**
  1143. * Perform a stateless HTTP Basic login attempt.
  1144. *
  1145. * @param string $field
  1146. * @return \Symfony\Component\HttpFoundation\Response|null
  1147. * @static
  1148. */
  1149. public static function onceBasic($field = 'email'){
  1150. return \Illuminate\Auth\Guard::onceBasic($field);
  1151. }
  1152. /**
  1153. * Attempt to authenticate a user using the given credentials.
  1154. *
  1155. * @param array $credentials
  1156. * @param bool $remember
  1157. * @param bool $login
  1158. * @return bool
  1159. * @static
  1160. */
  1161. public static function attempt($credentials = array(), $remember = false, $login = true){
  1162. return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
  1163. }
  1164. /**
  1165. * Register an authentication attempt event listener.
  1166. *
  1167. * @param mixed $callback
  1168. * @return void
  1169. * @static
  1170. */
  1171. public static function attempting($callback){
  1172. \Illuminate\Auth\Guard::attempting($callback);
  1173. }
  1174. /**
  1175. * Log a user into the application.
  1176. *
  1177. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1178. * @param bool $remember
  1179. * @return void
  1180. * @static
  1181. */
  1182. public static function login($user, $remember = false){
  1183. \Illuminate\Auth\Guard::login($user, $remember);
  1184. }
  1185. /**
  1186. * Log the given user ID into the application.
  1187. *
  1188. * @param mixed $id
  1189. * @param bool $remember
  1190. * @return \App\User
  1191. * @static
  1192. */
  1193. public static function loginUsingId($id, $remember = false){
  1194. return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
  1195. }
  1196. /**
  1197. * Log the given user ID into the application without sessions or cookies.
  1198. *
  1199. * @param mixed $id
  1200. * @return bool
  1201. * @static
  1202. */
  1203. public static function onceUsingId($id){
  1204. return \Illuminate\Auth\Guard::onceUsingId($id);
  1205. }
  1206. /**
  1207. * Log the user out of the application.
  1208. *
  1209. * @return void
  1210. * @static
  1211. */
  1212. public static function logout(){
  1213. \Illuminate\Auth\Guard::logout();
  1214. }
  1215. /**
  1216. * Get the cookie creator instance used by the guard.
  1217. *
  1218. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1219. * @throws \RuntimeException
  1220. * @static
  1221. */
  1222. public static function getCookieJar(){
  1223. return \Illuminate\Auth\Guard::getCookieJar();
  1224. }
  1225. /**
  1226. * Set the cookie creator instance used by the guard.
  1227. *
  1228. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1229. * @return void
  1230. * @static
  1231. */
  1232. public static function setCookieJar($cookie){
  1233. \Illuminate\Auth\Guard::setCookieJar($cookie);
  1234. }
  1235. /**
  1236. * Get the event dispatcher instance.
  1237. *
  1238. * @return \Illuminate\Contracts\Events\Dispatcher
  1239. * @static
  1240. */
  1241. public static function getDispatcher(){
  1242. return \Illuminate\Auth\Guard::getDispatcher();
  1243. }
  1244. /**
  1245. * Set the event dispatcher instance.
  1246. *
  1247. * @param \Illuminate\Contracts\Events\Dispatcher
  1248. * @return void
  1249. * @static
  1250. */
  1251. public static function setDispatcher($events){
  1252. \Illuminate\Auth\Guard::setDispatcher($events);
  1253. }
  1254. /**
  1255. * Get the session store used by the guard.
  1256. *
  1257. * @return \Illuminate\Session\Store
  1258. * @static
  1259. */
  1260. public static function getSession(){
  1261. return \Illuminate\Auth\Guard::getSession();
  1262. }
  1263. /**
  1264. * Get the user provider used by the guard.
  1265. *
  1266. * @return \Illuminate\Contracts\Auth\UserProvider
  1267. * @static
  1268. */
  1269. public static function getProvider(){
  1270. return \Illuminate\Auth\Guard::getProvider();
  1271. }
  1272. /**
  1273. * Set the user provider used by the guard.
  1274. *
  1275. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1276. * @return void
  1277. * @static
  1278. */
  1279. public static function setProvider($provider){
  1280. \Illuminate\Auth\Guard::setProvider($provider);
  1281. }
  1282. /**
  1283. * Return the currently cached user of the application.
  1284. *
  1285. * @return \App\User|null
  1286. * @static
  1287. */
  1288. public static function getUser(){
  1289. return \Illuminate\Auth\Guard::getUser();
  1290. }
  1291. /**
  1292. * Set the current user of the application.
  1293. *
  1294. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1295. * @return void
  1296. * @static
  1297. */
  1298. public static function setUser($user){
  1299. \Illuminate\Auth\Guard::setUser($user);
  1300. }
  1301. /**
  1302. * Get the current request instance.
  1303. *
  1304. * @return \Symfony\Component\HttpFoundation\Request
  1305. * @static
  1306. */
  1307. public static function getRequest(){
  1308. return \Illuminate\Auth\Guard::getRequest();
  1309. }
  1310. /**
  1311. * Set the current request instance.
  1312. *
  1313. * @param \Symfony\Component\HttpFoundation\Request
  1314. * @return $this
  1315. * @static
  1316. */
  1317. public static function setRequest($request){
  1318. return \Illuminate\Auth\Guard::setRequest($request);
  1319. }
  1320. /**
  1321. * Get the last user we attempted to authenticate.
  1322. *
  1323. * @return \App\User
  1324. * @static
  1325. */
  1326. public static function getLastAttempted(){
  1327. return \Illuminate\Auth\Guard::getLastAttempted();
  1328. }
  1329. /**
  1330. * Get a unique identifier for the auth session value.
  1331. *
  1332. * @return string
  1333. * @static
  1334. */
  1335. public static function getName(){
  1336. return \Illuminate\Auth\Guard::getName();
  1337. }
  1338. /**
  1339. * Get the name of the cookie used to store the "recaller".
  1340. *
  1341. * @return string
  1342. * @static
  1343. */
  1344. public static function getRecallerName(){
  1345. return \Illuminate\Auth\Guard::getRecallerName();
  1346. }
  1347. /**
  1348. * Determine if the user was authenticated via "remember me" cookie.
  1349. *
  1350. * @return bool
  1351. * @static
  1352. */
  1353. public static function viaRemember(){
  1354. return \Illuminate\Auth\Guard::viaRemember();
  1355. }
  1356. }
  1357. class Blade extends \Illuminate\Support\Facades\Blade{
  1358. /**
  1359. * Compile the view at the given path.
  1360. *
  1361. * @param string $path
  1362. * @return void
  1363. * @static
  1364. */
  1365. public static function compile($path = null){
  1366. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1367. }
  1368. /**
  1369. * Get the path currently being compiled.
  1370. *
  1371. * @return string
  1372. * @static
  1373. */
  1374. public static function getPath(){
  1375. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1376. }
  1377. /**
  1378. * Set the path currently being compiled.
  1379. *
  1380. * @param string $path
  1381. * @return void
  1382. * @static
  1383. */
  1384. public static function setPath($path){
  1385. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1386. }
  1387. /**
  1388. * Compile the given Blade template contents.
  1389. *
  1390. * @param string $value
  1391. * @return string
  1392. * @static
  1393. */
  1394. public static function compileString($value){
  1395. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1396. }
  1397. /**
  1398. * Compile the default values for the echo statement.
  1399. *
  1400. * @param string $value
  1401. * @return string
  1402. * @static
  1403. */
  1404. public static function compileEchoDefaults($value){
  1405. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  1406. }
  1407. /**
  1408. * Register a custom Blade compiler.
  1409. *
  1410. * @param callable $compiler
  1411. * @return void
  1412. * @static
  1413. */
  1414. public static function extend($compiler){
  1415. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1416. }
  1417. /**
  1418. * Get the regular expression for a generic Blade function.
  1419. *
  1420. * @param string $function
  1421. * @return string
  1422. * @static
  1423. */
  1424. public static function createMatcher($function){
  1425. return \Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
  1426. }
  1427. /**
  1428. * Get the regular expression for a generic Blade function.
  1429. *
  1430. * @param string $function
  1431. * @return string
  1432. * @static
  1433. */
  1434. public static function createOpenMatcher($function){
  1435. return \Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
  1436. }
  1437. /**
  1438. * Create a plain Blade matcher.
  1439. *
  1440. * @param string $function
  1441. * @return string
  1442. * @static
  1443. */
  1444. public static function createPlainMatcher($function){
  1445. return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
  1446. }
  1447. /**
  1448. * Sets the raw tags used for the compiler.
  1449. *
  1450. * @param string $openTag
  1451. * @param string $closeTag
  1452. * @return void
  1453. * @static
  1454. */
  1455. public static function setRawTags($openTag, $closeTag){
  1456. \Illuminate\View\Compilers\BladeCompiler::setRawTags($openTag, $closeTag);
  1457. }
  1458. /**
  1459. * Sets the content tags used for the compiler.
  1460. *
  1461. * @param string $openTag
  1462. * @param string $closeTag
  1463. * @param bool $escaped
  1464. * @return void
  1465. * @static
  1466. */
  1467. public static function setContentTags($openTag, $closeTag, $escaped = false){
  1468. \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
  1469. }
  1470. /**
  1471. * Sets the escaped content tags used for the compiler.
  1472. *
  1473. * @param string $openTag
  1474. * @param string $closeTag
  1475. * @return void
  1476. * @static
  1477. */
  1478. public static function setEscapedContentTags($openTag, $closeTag){
  1479. \Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
  1480. }
  1481. /**
  1482. * Gets the content tags used for the compiler.
  1483. *
  1484. * @return string
  1485. * @static
  1486. */
  1487. public static function getContentTags(){
  1488. return \Illuminate\View\Compilers\BladeCompiler::getContentTags();
  1489. }
  1490. /**
  1491. * Gets the escaped content tags used for the compiler.
  1492. *
  1493. * @return string
  1494. * @static
  1495. */
  1496. public static function getEscapedContentTags(){
  1497. return \Illuminate\View\Compilers\BladeCompiler::getEscapedContentTags();
  1498. }
  1499. /**
  1500. * Set the echo format to be used by the compiler.
  1501. *
  1502. * @param string $format
  1503. * @return void
  1504. * @static
  1505. */
  1506. public static function setEchoFormat($format){
  1507. \Illuminate\View\Compilers\BladeCompiler::setEchoFormat($format);
  1508. }
  1509. /**
  1510. * Get the path to the compiled version of a view.
  1511. *
  1512. * @param string $path
  1513. * @return string
  1514. * @static
  1515. */
  1516. public static function getCompiledPath($path){
  1517. //Method inherited from \Illuminate\View\Compilers\Compiler
  1518. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1519. }
  1520. /**
  1521. * Determine if the view at the given path is expired.
  1522. *
  1523. * @param string $path
  1524. * @return bool
  1525. * @static
  1526. */
  1527. public static function isExpired($path){
  1528. //Method inherited from \Illuminate\View\Compilers\Compiler
  1529. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1530. }
  1531. }
  1532. class Bus extends \Illuminate\Support\Facades\Bus{
  1533. /**
  1534. * Marshal a command and dispatch it to its appropriate handler.
  1535. *
  1536. * @param mixed $command
  1537. * @param array $array
  1538. * @return mixed
  1539. * @static
  1540. */
  1541. public static function dispatchFromArray($command, $array){
  1542. return \Illuminate\Bus\Dispatcher::dispatchFromArray($command, $array);
  1543. }
  1544. /**
  1545. * Marshal a command and dispatch it to its appropriate handler.
  1546. *
  1547. * @param mixed $command
  1548. * @param \ArrayAccess $source
  1549. * @param array $extras
  1550. * @return mixed
  1551. * @static
  1552. */
  1553. public static function dispatchFrom($command, $source, $extras = array()){
  1554. return \Illuminate\Bus\Dispatcher::dispatchFrom($command, $source, $extras);
  1555. }
  1556. /**
  1557. * Dispatch a command to its appropriate handler.
  1558. *
  1559. * @param mixed $command
  1560. * @param \Closure|null $afterResolving
  1561. * @return mixed
  1562. * @static
  1563. */
  1564. public static function dispatch($command, $afterResolving = null){
  1565. return \Illuminate\Bus\Dispatcher::dispatch($command, $afterResolving);
  1566. }
  1567. /**
  1568. * Dispatch a command to its appropriate handler in the current process.
  1569. *
  1570. * @param mixed $command
  1571. * @param \Closure|null $afterResolving
  1572. * @return mixed
  1573. * @static
  1574. */
  1575. public static function dispatchNow($command, $afterResolving = null){
  1576. return \Illuminate\Bus\Dispatcher::dispatchNow($command, $afterResolving);
  1577. }
  1578. /**
  1579. * Dispatch a command to its appropriate handler behind a queue.
  1580. *
  1581. * @param mixed $command
  1582. * @return mixed
  1583. * @throws \RuntimeException
  1584. * @static
  1585. */
  1586. public static function dispatchToQueue($command){
  1587. return \Illuminate\Bus\Dispatcher::dispatchToQueue($command);
  1588. }
  1589. /**
  1590. * Get the handler instance for the given command.
  1591. *
  1592. * @param mixed $command
  1593. * @return mixed
  1594. * @static
  1595. */
  1596. public static function resolveHandler($command){
  1597. return \Illuminate\Bus\Dispatcher::resolveHandler($command);
  1598. }
  1599. /**
  1600. * Get the handler class for the given command.
  1601. *
  1602. * @param mixed $command
  1603. * @return string
  1604. * @static
  1605. */
  1606. public static function getHandlerClass($command){
  1607. return \Illuminate\Bus\Dispatcher::getHandlerClass($command);
  1608. }
  1609. /**
  1610. * Get the handler method for the given command.
  1611. *
  1612. * @param mixed $command
  1613. * @return string
  1614. * @static
  1615. */
  1616. public static function getHandlerMethod($command){
  1617. return \Illuminate\Bus\Dispatcher::getHandlerMethod($command);
  1618. }
  1619. /**
  1620. * Register command to handler mappings.
  1621. *
  1622. * @param array $commands
  1623. * @return void
  1624. * @static
  1625. */
  1626. public static function maps($commands){
  1627. \Illuminate\Bus\Dispatcher::maps($commands);
  1628. }
  1629. /**
  1630. * Register a fallback mapper callback.
  1631. *
  1632. * @param \Closure $mapper
  1633. * @return void
  1634. * @static
  1635. */
  1636. public static function mapUsing($mapper){
  1637. \Illuminate\Bus\Dispatcher::mapUsing($mapper);
  1638. }
  1639. /**
  1640. * Map the command to a handler within a given root namespace.
  1641. *
  1642. * @param mixed $command
  1643. * @param string $commandNamespace
  1644. * @param string $handlerNamespace
  1645. * @return string
  1646. * @static
  1647. */
  1648. public static function simpleMapping($command, $commandNamespace, $handlerNamespace){
  1649. return \Illuminate\Bus\Dispatcher::simpleMapping($command, $commandNamespace, $handlerNamespace);
  1650. }
  1651. /**
  1652. * Set the pipes commands should be piped through before dispatching.
  1653. *
  1654. * @param array $pipes
  1655. * @return $this
  1656. * @static
  1657. */
  1658. public static function pipeThrough($pipes){
  1659. return \Illuminate\Bus\Dispatcher::pipeThrough($pipes);
  1660. }
  1661. }
  1662. class Cache extends \Illuminate\Support\Facades\Cache{
  1663. /**
  1664. * Get a cache store instance by name.
  1665. *
  1666. * @param string|null $name
  1667. * @return mixed
  1668. * @static
  1669. */
  1670. public static function store($name = null){
  1671. return \Illuminate\Cache\CacheManager::store($name);
  1672. }
  1673. /**
  1674. * Get a cache driver instance.
  1675. *
  1676. * @param string $driver
  1677. * @return mixed
  1678. * @static
  1679. */
  1680. public static function driver($driver = null){
  1681. return \Illuminate\Cache\CacheManager::driver($driver);
  1682. }
  1683. /**
  1684. * Create a new cache repository with the given implementation.
  1685. *
  1686. * @param \Illuminate\Contracts\Cache\Store $store
  1687. * @return \Illuminate\Cache\Repository
  1688. * @static
  1689. */
  1690. public static function repository($store){
  1691. return \Illuminate\Cache\CacheManager::repository($store);
  1692. }
  1693. /**
  1694. * Get the default cache driver name.
  1695. *
  1696. * @return string
  1697. * @static
  1698. */
  1699. public static function getDefaultDriver(){
  1700. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  1701. }
  1702. /**
  1703. * Set the default cache driver name.
  1704. *
  1705. * @param string $name
  1706. * @return void
  1707. * @static
  1708. */
  1709. public static function setDefaultDriver($name){
  1710. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  1711. }
  1712. /**
  1713. * Register a custom driver creator Closure.
  1714. *
  1715. * @param string $driver
  1716. * @param \Closure $callback
  1717. * @return $this
  1718. * @static
  1719. */
  1720. public static function extend($driver, $callback){
  1721. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  1722. }
  1723. /**
  1724. * Set the event dispatcher instance.
  1725. *
  1726. * @param \Illuminate\Contracts\Events\Dispatcher
  1727. * @return void
  1728. * @static
  1729. */
  1730. public static function setEventDispatcher($events){
  1731. \Illuminate\Cache\Repository::setEventDispatcher($events);
  1732. }
  1733. /**
  1734. * Determine if an item exists in the cache.
  1735. *
  1736. * @param string $key
  1737. * @return bool
  1738. * @static
  1739. */
  1740. public static function has($key){
  1741. return \Illuminate\Cache\Repository::has($key);
  1742. }
  1743. /**
  1744. * Retrieve an item from the cache by key.
  1745. *
  1746. * @param string $key
  1747. * @param mixed $default
  1748. * @return mixed
  1749. * @static
  1750. */
  1751. public static function get($key, $default = null){
  1752. return \Illuminate\Cache\Repository::get($key, $default);
  1753. }
  1754. /**
  1755. * Retrieve an item from the cache and delete it.
  1756. *
  1757. * @param string $key
  1758. * @param mixed $default
  1759. * @return mixed
  1760. * @static
  1761. */
  1762. public static function pull($key, $default = null){
  1763. return \Illuminate\Cache\Repository::pull($key, $default);
  1764. }
  1765. /**
  1766. * Store an item in the cache.
  1767. *
  1768. * @param string $key
  1769. * @param mixed $value
  1770. * @param \DateTime|int $minutes
  1771. * @return void
  1772. * @static
  1773. */
  1774. public static function put($key, $value, $minutes){
  1775. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  1776. }
  1777. /**
  1778. * Store an item in the cache if the key does not exist.
  1779. *
  1780. * @param string $key
  1781. * @param mixed $value
  1782. * @param \DateTime|int $minutes
  1783. * @return bool
  1784. * @static
  1785. */
  1786. public static function add($key, $value, $minutes){
  1787. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  1788. }
  1789. /**
  1790. * Store an item in the cache indefinitely.
  1791. *
  1792. * @param string $key
  1793. * @param mixed $value
  1794. * @return void
  1795. * @static
  1796. */
  1797. public static function forever($key, $value){
  1798. \Illuminate\Cache\Repository::forever($key, $value);
  1799. }
  1800. /**
  1801. * Get an item from the cache, or store the default value.
  1802. *
  1803. * @param string $key
  1804. * @param \DateTime|int $minutes
  1805. * @param \Closure $callback
  1806. * @return mixed
  1807. * @static
  1808. */
  1809. public static function remember($key, $minutes, $callback){
  1810. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  1811. }
  1812. /**
  1813. * Get an item from the cache, or store the default value forever.
  1814. *
  1815. * @param string $key
  1816. * @param \Closure $callback
  1817. * @return mixed
  1818. * @static
  1819. */
  1820. public static function sear($key, $callback){
  1821. return \Illuminate\Cache\Repository::sear($key, $callback);
  1822. }
  1823. /**
  1824. * Get an item from the cache, or store the default value forever.
  1825. *
  1826. * @param string $key
  1827. * @param \Closure $callback
  1828. * @return mixed
  1829. * @static
  1830. */
  1831. public static function rememberForever($key, $callback){
  1832. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  1833. }
  1834. /**
  1835. * Remove an item from the cache.
  1836. *
  1837. * @param string $key
  1838. * @return bool
  1839. * @static
  1840. */
  1841. public static function forget($key){
  1842. return \Illuminate\Cache\Repository::forget($key);
  1843. }
  1844. /**
  1845. * Get the default cache time.
  1846. *
  1847. * @return int
  1848. * @static
  1849. */
  1850. public static function getDefaultCacheTime(){
  1851. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  1852. }
  1853. /**
  1854. * Set the default cache time in minutes.
  1855. *
  1856. * @param int $minutes
  1857. * @return void
  1858. * @static
  1859. */
  1860. public static function setDefaultCacheTime($minutes){
  1861. \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  1862. }
  1863. /**
  1864. * Get the cache store implementation.
  1865. *
  1866. * @return \Illuminate\Contracts\Cache\Store
  1867. * @static
  1868. */
  1869. public static function getStore(){
  1870. return \Illuminate\Cache\Repository::getStore();
  1871. }
  1872. /**
  1873. * Determine if a cached value exists.
  1874. *
  1875. * @param string $key
  1876. * @return bool
  1877. * @static
  1878. */
  1879. public static function offsetExists($key){
  1880. return \Illuminate\Cache\Repository::offsetExists($key);
  1881. }
  1882. /**
  1883. * Retrieve an item from the cache by key.
  1884. *
  1885. * @param string $key
  1886. * @return mixed
  1887. * @static
  1888. */
  1889. public static function offsetGet($key){
  1890. return \Illuminate\Cache\Repository::offsetGet($key);
  1891. }
  1892. /**
  1893. * Store an item in the cache for the default time.
  1894. *
  1895. * @param string $key
  1896. * @param mixed $value
  1897. * @return void
  1898. * @static
  1899. */
  1900. public static function offsetSet($key, $value){
  1901. \Illuminate\Cache\Repository::offsetSet($key, $value);
  1902. }
  1903. /**
  1904. * Remove an item from the cache.
  1905. *
  1906. * @param string $key
  1907. * @return void
  1908. * @static
  1909. */
  1910. public static function offsetUnset($key){
  1911. \Illuminate\Cache\Repository::offsetUnset($key);
  1912. }
  1913. /**
  1914. * Register a custom macro.
  1915. *
  1916. * @param string $name
  1917. * @param callable $macro
  1918. * @return void
  1919. * @static
  1920. */
  1921. public static function macro($name, $macro){
  1922. \Illuminate\Cache\Repository::macro($name, $macro);
  1923. }
  1924. /**
  1925. * Checks if macro is registered.
  1926. *
  1927. * @param string $name
  1928. * @return bool
  1929. * @static
  1930. */
  1931. public static function hasMacro($name){
  1932. return \Illuminate\Cache\Repository::hasMacro($name);
  1933. }
  1934. /**
  1935. * Dynamically handle calls to the class.
  1936. *
  1937. * @param string $method
  1938. * @param array $parameters
  1939. * @return mixed
  1940. * @throws \BadMethodCallException
  1941. * @static
  1942. */
  1943. public static function macroCall($method, $parameters){
  1944. return \Illuminate\Cache\Repository::macroCall($method, $parameters);
  1945. }
  1946. /**
  1947. * Increment the value of an item in the cache.
  1948. *
  1949. * @param string $key
  1950. * @param mixed $value
  1951. * @return int
  1952. * @static
  1953. */
  1954. public static function increment($key, $value = 1){
  1955. return \Illuminate\Cache\FileStore::increment($key, $value);
  1956. }
  1957. /**
  1958. * Decrement the value of an item in the cache.
  1959. *
  1960. * @param string $key
  1961. * @param mixed $value
  1962. * @return int
  1963. * @static
  1964. */
  1965. public static function decrement($key, $value = 1){
  1966. return \Illuminate\Cache\FileStore::decrement($key, $value);
  1967. }
  1968. /**
  1969. * Remove all items from the cache.
  1970. *
  1971. * @return void
  1972. * @static
  1973. */
  1974. public static function flush(){
  1975. \Illuminate\Cache\FileStore::flush();
  1976. }
  1977. /**
  1978. * Get the Filesystem instance.
  1979. *
  1980. * @return \Illuminate\Filesystem\Filesystem
  1981. * @static
  1982. */
  1983. public static function getFilesystem(){
  1984. return \Illuminate\Cache\FileStore::getFilesystem();
  1985. }
  1986. /**
  1987. * Get the working directory of the cache.
  1988. *
  1989. * @return string
  1990. * @static
  1991. */
  1992. public static function getDirectory(){
  1993. return \Illuminate\Cache\FileStore::getDirectory();
  1994. }
  1995. /**
  1996. * Get the cache key prefix.
  1997. *
  1998. * @return string
  1999. * @static
  2000. */
  2001. public static function getPrefix(){
  2002. return \Illuminate\Cache\FileStore::getPrefix();
  2003. }
  2004. }
  2005. class Config extends \Illuminate\Support\Facades\Config{
  2006. /**
  2007. * Determine if the given configuration value exists.
  2008. *
  2009. * @param string $key
  2010. * @return bool
  2011. * @static
  2012. */
  2013. public static function has($key){
  2014. return \Illuminate\Config\Repository::has($key);
  2015. }
  2016. /**
  2017. * Get the specified configuration value.
  2018. *
  2019. * @param string $key
  2020. * @param mixed $default
  2021. * @return mixed
  2022. * @static
  2023. */
  2024. public static function get($key, $default = null){
  2025. return \Illuminate\Config\Repository::get($key, $default);
  2026. }
  2027. /**
  2028. * Set a given configuration value.
  2029. *
  2030. * @param array|string $key
  2031. * @param mixed $value
  2032. * @return void
  2033. * @static
  2034. */
  2035. public static function set($key, $value = null){
  2036. \Illuminate\Config\Repository::set($key, $value);
  2037. }
  2038. /**
  2039. * Prepend a value onto an array configuration value.
  2040. *
  2041. * @param string $key
  2042. * @param mixed $value
  2043. * @return void
  2044. * @static
  2045. */
  2046. public static function prepend($key, $value){
  2047. \Illuminate\Config\Repository::prepend($key, $value);
  2048. }
  2049. /**
  2050. * Push a value onto an array configuration value.
  2051. *
  2052. * @param string $key
  2053. * @param mixed $value
  2054. * @return void
  2055. * @static
  2056. */
  2057. public static function push($key, $value){
  2058. \Illuminate\Config\Repository::push($key, $value);
  2059. }
  2060. /**
  2061. * Get all of the configuration items for the application.
  2062. *
  2063. * @return array
  2064. * @static
  2065. */
  2066. public static function all(){
  2067. return \Illuminate\Config\Repository::all();
  2068. }
  2069. /**
  2070. * Determine if the given configuration option exists.
  2071. *
  2072. * @param string $key
  2073. * @return bool
  2074. * @static
  2075. */
  2076. public static function offsetExists($key){
  2077. return \Illuminate\Config\Repository::offsetExists($key);
  2078. }
  2079. /**
  2080. * Get a configuration option.
  2081. *
  2082. * @param string $key
  2083. * @return mixed
  2084. * @static
  2085. */
  2086. public static function offsetGet($key){
  2087. return \Illuminate\Config\Repository::offsetGet($key);
  2088. }
  2089. /**
  2090. * Set a configuration option.
  2091. *
  2092. * @param string $key
  2093. * @param mixed $value
  2094. * @return void
  2095. * @static
  2096. */
  2097. public static function offsetSet($key, $value){
  2098. \Illuminate\Config\Repository::offsetSet($key, $value);
  2099. }
  2100. /**
  2101. * Unset a configuration option.
  2102. *
  2103. * @param string $key
  2104. * @return void
  2105. * @static
  2106. */
  2107. public static function offsetUnset($key){
  2108. \Illuminate\Config\Repository::offsetUnset($key);
  2109. }
  2110. }
  2111. class Cookie extends \Illuminate\Support\Facades\Cookie{
  2112. /**
  2113. * Create a new cookie instance.
  2114. *
  2115. * @param string $name
  2116. * @param string $value
  2117. * @param int $minutes
  2118. * @param string $path
  2119. * @param string $domain
  2120. * @param bool $secure
  2121. * @param bool $httpOnly
  2122. * @return \Symfony\Component\HttpFoundation\Cookie
  2123. * @static
  2124. */
  2125. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2126. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  2127. }
  2128. /**
  2129. * Create a cookie that lasts "forever" (five years).
  2130. *
  2131. * @param string $name
  2132. * @param string $value
  2133. * @param string $path
  2134. * @param string $domain
  2135. * @param bool $secure
  2136. * @param bool $httpOnly
  2137. * @return \Symfony\Component\HttpFoundation\Cookie
  2138. * @static
  2139. */
  2140. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2141. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  2142. }
  2143. /**
  2144. * Expire the given cookie.
  2145. *
  2146. * @param string $name
  2147. * @param string $path
  2148. * @param string $domain
  2149. * @return \Symfony\Component\HttpFoundation\Cookie
  2150. * @static
  2151. */
  2152. public static function forget($name, $path = null, $domain = null){
  2153. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  2154. }
  2155. /**
  2156. * Determine if a cookie has been queued.
  2157. *
  2158. * @param string $key
  2159. * @return bool
  2160. * @static
  2161. */
  2162. public static function hasQueued($key){
  2163. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  2164. }
  2165. /**
  2166. * Get a queued cookie instance.
  2167. *
  2168. * @param string $key
  2169. * @param mixed $default
  2170. * @return \Symfony\Component\HttpFoundation\Cookie
  2171. * @static
  2172. */
  2173. public static function queued($key, $default = null){
  2174. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  2175. }
  2176. /**
  2177. * Queue a cookie to send with the next response.
  2178. *
  2179. * @param mixed
  2180. * @return void
  2181. * @static
  2182. */
  2183. public static function queue(){
  2184. \Illuminate\Cookie\CookieJar::queue();
  2185. }
  2186. /**
  2187. * Remove a cookie from the queue.
  2188. *
  2189. * @param string $name
  2190. * @static
  2191. */
  2192. public static function unqueue($name){
  2193. return \Illuminate\Cookie\CookieJar::unqueue($name);
  2194. }
  2195. /**
  2196. * Set the default path and domain for the jar.
  2197. *
  2198. * @param string $path
  2199. * @param string $domain
  2200. * @return $this
  2201. * @static
  2202. */
  2203. public static function setDefaultPathAndDomain($path, $domain){
  2204. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
  2205. }
  2206. /**
  2207. * Get the cookies which have been queued for the next request.
  2208. *
  2209. * @return array
  2210. * @static
  2211. */
  2212. public static function getQueuedCookies(){
  2213. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  2214. }
  2215. }
  2216. class Crypt extends \Illuminate\Support\Facades\Crypt{
  2217. /**
  2218. * Encrypt the given value.
  2219. *
  2220. * @param string $value
  2221. * @return string
  2222. * @static
  2223. */
  2224. public static function encrypt($value){
  2225. return \Illuminate\Encryption\Encrypter::encrypt($value);
  2226. }
  2227. /**
  2228. * Decrypt the given value.
  2229. *
  2230. * @param string $payload
  2231. * @return string
  2232. * @static
  2233. */
  2234. public static function decrypt($payload){
  2235. return \Illuminate\Encryption\Encrypter::decrypt($payload);
  2236. }
  2237. /**
  2238. * Set the encryption key.
  2239. *
  2240. * @param string $key
  2241. * @return void
  2242. * @static
  2243. */
  2244. public static function setKey($key){
  2245. \Illuminate\Encryption\Encrypter::setKey($key);
  2246. }
  2247. /**
  2248. * Set the encryption cipher.
  2249. *
  2250. * @param string $cipher
  2251. * @return void
  2252. * @static
  2253. */
  2254. public static function setCipher($cipher){
  2255. \Illuminate\Encryption\Encrypter::setCipher($cipher);
  2256. }
  2257. /**
  2258. * Set the encryption mode.
  2259. *
  2260. * @param string $mode
  2261. * @return void
  2262. * @static
  2263. */
  2264. public static function setMode($mode){
  2265. \Illuminate\Encryption\Encrypter::setMode($mode);
  2266. }
  2267. }
  2268. class DB extends \Illuminate\Support\Facades\DB{
  2269. /**
  2270. * Get a database connection instance.
  2271. *
  2272. * @param string $name
  2273. * @return \Illuminate\Database\Connection
  2274. * @static
  2275. */
  2276. public static function connection($name = null){
  2277. return \Illuminate\Database\DatabaseManager::connection($name);
  2278. }
  2279. /**
  2280. * Disconnect from the given database and remove from local cache.
  2281. *
  2282. * @param string $name
  2283. * @return void
  2284. * @static
  2285. */
  2286. public static function purge($name = null){
  2287. \Illuminate\Database\DatabaseManager::purge($name);
  2288. }
  2289. /**
  2290. * Disconnect from the given database.
  2291. *
  2292. * @param string $name
  2293. * @return void
  2294. * @static
  2295. */
  2296. public static function disconnect($name = null){
  2297. \Illuminate\Database\DatabaseManager::disconnect($name);
  2298. }
  2299. /**
  2300. * Reconnect to the given database.
  2301. *
  2302. * @param string $name
  2303. * @return \Illuminate\Database\Connection
  2304. * @static
  2305. */
  2306. public static function reconnect($name = null){
  2307. return \Illuminate\Database\DatabaseManager::reconnect($name);
  2308. }
  2309. /**
  2310. * Get the default connection name.
  2311. *
  2312. * @return string
  2313. * @static
  2314. */
  2315. public static function getDefaultConnection(){
  2316. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  2317. }
  2318. /**
  2319. * Set the default connection name.
  2320. *
  2321. * @param string $name
  2322. * @return void
  2323. * @static
  2324. */
  2325. public static function setDefaultConnection($name){
  2326. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2327. }
  2328. /**
  2329. * Register an extension connection resolver.
  2330. *
  2331. * @param string $name
  2332. * @param callable $resolver
  2333. * @return void
  2334. * @static
  2335. */
  2336. public static function extend($name, $resolver){
  2337. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2338. }
  2339. /**
  2340. * Return all of the created connections.
  2341. *
  2342. * @return array
  2343. * @static
  2344. */
  2345. public static function getConnections(){
  2346. return \Illuminate\Database\DatabaseManager::getConnections();
  2347. }
  2348. /**
  2349. * Set the query grammar to the default implementation.
  2350. *
  2351. * @return void
  2352. * @static
  2353. */
  2354. public static function useDefaultQueryGrammar(){
  2355. //Method inherited from \Illuminate\Database\Connection
  2356. \Illuminate\Database\PostgresConnection::useDefaultQueryGrammar();
  2357. }
  2358. /**
  2359. * Set the schema grammar to the default implementation.
  2360. *
  2361. * @return void
  2362. * @static
  2363. */
  2364. public static function useDefaultSchemaGrammar(){
  2365. //Method inherited from \Illuminate\Database\Connection
  2366. \Illuminate\Database\PostgresConnection::useDefaultSchemaGrammar();
  2367. }
  2368. /**
  2369. * Set the query post processor to the default implementation.
  2370. *
  2371. * @return void
  2372. * @static
  2373. */
  2374. public static function useDefaultPostProcessor(){
  2375. //Method inherited from \Illuminate\Database\Connection
  2376. \Illuminate\Database\PostgresConnection::useDefaultPostProcessor();
  2377. }
  2378. /**
  2379. * Get a schema builder instance for the connection.
  2380. *
  2381. * @return \Illuminate\Database\Schema\Builder
  2382. * @static
  2383. */
  2384. public static function getSchemaBuilder(){
  2385. //Method inherited from \Illuminate\Database\Connection
  2386. return \Illuminate\Database\PostgresConnection::getSchemaBuilder();
  2387. }
  2388. /**
  2389. * Begin a fluent query against a database table.
  2390. *
  2391. * @param string $table
  2392. * @return \Illuminate\Database\Query\Builder
  2393. * @static
  2394. */
  2395. public static function table($table){
  2396. //Method inherited from \Illuminate\Database\Connection
  2397. return \Illuminate\Database\PostgresConnection::table($table);
  2398. }
  2399. /**
  2400. * Get a new raw query expression.
  2401. *
  2402. * @param mixed $value
  2403. * @return \Illuminate\Database\Query\Expression
  2404. * @static
  2405. */
  2406. public static function raw($value){
  2407. //Method inherited from \Illuminate\Database\Connection
  2408. return \Illuminate\Database\PostgresConnection::raw($value);
  2409. }
  2410. /**
  2411. * Run a select statement and return a single result.
  2412. *
  2413. * @param string $query
  2414. * @param array $bindings
  2415. * @return mixed
  2416. * @static
  2417. */
  2418. public static function selectOne($query, $bindings = array()){
  2419. //Method inherited from \Illuminate\Database\Connection
  2420. return \Illuminate\Database\PostgresConnection::selectOne($query, $bindings);
  2421. }
  2422. /**
  2423. * Run a select statement against the database.
  2424. *
  2425. * @param string $query
  2426. * @param array $bindings
  2427. * @return array
  2428. * @static
  2429. */
  2430. public static function selectFromWriteConnection($query, $bindings = array()){
  2431. //Method inherited from \Illuminate\Database\Connection
  2432. return \Illuminate\Database\PostgresConnection::selectFromWriteConnection($query, $bindings);
  2433. }
  2434. /**
  2435. * Run a select statement against the database.
  2436. *
  2437. * @param string $query
  2438. * @param array $bindings
  2439. * @param bool $useReadPdo
  2440. * @return array
  2441. * @static
  2442. */
  2443. public static function select($query, $bindings = array(), $useReadPdo = true){
  2444. //Method inherited from \Illuminate\Database\Connection
  2445. return \Illuminate\Database\PostgresConnection::select($query, $bindings, $useReadPdo);
  2446. }
  2447. /**
  2448. * Run an insert statement against the database.
  2449. *
  2450. * @param string $query
  2451. * @param array $bindings
  2452. * @return bool
  2453. * @static
  2454. */
  2455. public static function insert($query, $bindings = array()){
  2456. //Method inherited from \Illuminate\Database\Connection
  2457. return \Illuminate\Database\PostgresConnection::insert($query, $bindings);
  2458. }
  2459. /**
  2460. * Run an update statement against the database.
  2461. *
  2462. * @param string $query
  2463. * @param array $bindings
  2464. * @return int
  2465. * @static
  2466. */
  2467. public static function update($query, $bindings = array()){
  2468. //Method inherited from \Illuminate\Database\Connection
  2469. return \Illuminate\Database\PostgresConnection::update($query, $bindings);
  2470. }
  2471. /**
  2472. * Run a delete statement against the database.
  2473. *
  2474. * @param string $query
  2475. * @param array $bindings
  2476. * @return int
  2477. * @static
  2478. */
  2479. public static function delete($query, $bindings = array()){
  2480. //Method inherited from \Illuminate\Database\Connection
  2481. return \Illuminate\Database\PostgresConnection::delete($query, $bindings);
  2482. }
  2483. /**
  2484. * Execute an SQL statement and return the boolean result.
  2485. *
  2486. * @param string $query
  2487. * @param array $bindings
  2488. * @return bool
  2489. * @static
  2490. */
  2491. public static function statement($query, $bindings = array()){
  2492. //Method inherited from \Illuminate\Database\Connection
  2493. return \Illuminate\Database\PostgresConnection::statement($query, $bindings);
  2494. }
  2495. /**
  2496. * Run an SQL statement and get the number of rows affected.
  2497. *
  2498. * @param string $query
  2499. * @param array $bindings
  2500. * @return int
  2501. * @static
  2502. */
  2503. public static function affectingStatement($query, $bindings = array()){
  2504. //Method inherited from \Illuminate\Database\Connection
  2505. return \Illuminate\Database\PostgresConnection::affectingStatement($query, $bindings);
  2506. }
  2507. /**
  2508. * Run a raw, unprepared query against the PDO connection.
  2509. *
  2510. * @param string $query
  2511. * @return bool
  2512. * @static
  2513. */
  2514. public static function unprepared($query){
  2515. //Method inherited from \Illuminate\Database\Connection
  2516. return \Illuminate\Database\PostgresConnection::unprepared($query);
  2517. }
  2518. /**
  2519. * Prepare the query bindings for execution.
  2520. *
  2521. * @param array $bindings
  2522. * @return array
  2523. * @static
  2524. */
  2525. public static function prepareBindings($bindings){
  2526. //Method inherited from \Illuminate\Database\Connection
  2527. return \Illuminate\Database\PostgresConnection::prepareBindings($bindings);
  2528. }
  2529. /**
  2530. * Execute a Closure within a transaction.
  2531. *
  2532. * @param \Closure $callback
  2533. * @return mixed
  2534. * @throws \Exception
  2535. * @static
  2536. */
  2537. public static function transaction($callback){
  2538. //Method inherited from \Illuminate\Database\Connection
  2539. return \Illuminate\Database\PostgresConnection::transaction($callback);
  2540. }
  2541. /**
  2542. * Start a new database transaction.
  2543. *
  2544. * @return void
  2545. * @static
  2546. */
  2547. public static function beginTransaction(){
  2548. //Method inherited from \Illuminate\Database\Connection
  2549. \Illuminate\Database\PostgresConnection::beginTransaction();
  2550. }
  2551. /**
  2552. * Commit the active database transaction.
  2553. *
  2554. * @return void
  2555. * @static
  2556. */
  2557. public static function commit(){
  2558. //Method inherited from \Illuminate\Database\Connection
  2559. \Illuminate\Database\PostgresConnection::commit();
  2560. }
  2561. /**
  2562. * Rollback the active database transaction.
  2563. *
  2564. * @return void
  2565. * @static
  2566. */
  2567. public static function rollBack(){
  2568. //Method inherited from \Illuminate\Database\Connection
  2569. \Illuminate\Database\PostgresConnection::rollBack();
  2570. }
  2571. /**
  2572. * Get the number of active transactions.
  2573. *
  2574. * @return int
  2575. * @static
  2576. */
  2577. public static function transactionLevel(){
  2578. //Method inherited from \Illuminate\Database\Connection
  2579. return \Illuminate\Database\PostgresConnection::transactionLevel();
  2580. }
  2581. /**
  2582. * Execute the given callback in "dry run" mode.
  2583. *
  2584. * @param \Closure $callback
  2585. * @return array
  2586. * @static
  2587. */
  2588. public static function pretend($callback){
  2589. //Method inherited from \Illuminate\Database\Connection
  2590. return \Illuminate\Database\PostgresConnection::pretend($callback);
  2591. }
  2592. /**
  2593. * Log a query in the connection's query log.
  2594. *
  2595. * @param string $query
  2596. * @param array $bindings
  2597. * @param float|null $time
  2598. * @return void
  2599. * @static
  2600. */
  2601. public static function logQuery($query, $bindings, $time = null){
  2602. //Method inherited from \Illuminate\Database\Connection
  2603. \Illuminate\Database\PostgresConnection::logQuery($query, $bindings, $time);
  2604. }
  2605. /**
  2606. * Register a database query listener with the connection.
  2607. *
  2608. * @param \Closure $callback
  2609. * @return void
  2610. * @static
  2611. */
  2612. public static function listen($callback){
  2613. //Method inherited from \Illuminate\Database\Connection
  2614. \Illuminate\Database\PostgresConnection::listen($callback);
  2615. }
  2616. /**
  2617. * Get a Doctrine Schema Column instance.
  2618. *
  2619. * @param string $table
  2620. * @param string $column
  2621. * @return \Doctrine\DBAL\Schema\Column
  2622. * @static
  2623. */
  2624. public static function getDoctrineColumn($table, $column){
  2625. //Method inherited from \Illuminate\Database\Connection
  2626. return \Illuminate\Database\PostgresConnection::getDoctrineColumn($table, $column);
  2627. }
  2628. /**
  2629. * Get the Doctrine DBAL schema manager for the connection.
  2630. *
  2631. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  2632. * @static
  2633. */
  2634. public static function getDoctrineSchemaManager(){
  2635. //Method inherited from \Illuminate\Database\Connection
  2636. return \Illuminate\Database\PostgresConnection::getDoctrineSchemaManager();
  2637. }
  2638. /**
  2639. * Get the Doctrine DBAL database connection instance.
  2640. *
  2641. * @return \Doctrine\DBAL\Connection
  2642. * @static
  2643. */
  2644. public static function getDoctrineConnection(){
  2645. //Method inherited from \Illuminate\Database\Connection
  2646. return \Illuminate\Database\PostgresConnection::getDoctrineConnection();
  2647. }
  2648. /**
  2649. * Get the current PDO connection.
  2650. *
  2651. * @return \PDO
  2652. * @static
  2653. */
  2654. public static function getPdo(){
  2655. //Method inherited from \Illuminate\Database\Connection
  2656. return \Illuminate\Database\PostgresConnection::getPdo();
  2657. }
  2658. /**
  2659. * Get the current PDO connection used for reading.
  2660. *
  2661. * @return \PDO
  2662. * @static
  2663. */
  2664. public static function getReadPdo(){
  2665. //Method inherited from \Illuminate\Database\Connection
  2666. return \Illuminate\Database\PostgresConnection::getReadPdo();
  2667. }
  2668. /**
  2669. * Set the PDO connection.
  2670. *
  2671. * @param \PDO|null $pdo
  2672. * @return $this
  2673. * @static
  2674. */
  2675. public static function setPdo($pdo){
  2676. //Method inherited from \Illuminate\Database\Connection
  2677. return \Illuminate\Database\PostgresConnection::setPdo($pdo);
  2678. }
  2679. /**
  2680. * Set the PDO connection used for reading.
  2681. *
  2682. * @param \PDO|null $pdo
  2683. * @return $this
  2684. * @static
  2685. */
  2686. public static function setReadPdo($pdo){
  2687. //Method inherited from \Illuminate\Database\Connection
  2688. return \Illuminate\Database\PostgresConnection::setReadPdo($pdo);
  2689. }
  2690. /**
  2691. * Set the reconnect instance on the connection.
  2692. *
  2693. * @param callable $reconnector
  2694. * @return $this
  2695. * @static
  2696. */
  2697. public static function setReconnector($reconnector){
  2698. //Method inherited from \Illuminate\Database\Connection
  2699. return \Illuminate\Database\PostgresConnection::setReconnector($reconnector);
  2700. }
  2701. /**
  2702. * Get the database connection name.
  2703. *
  2704. * @return string|null
  2705. * @static
  2706. */
  2707. public static function getName(){
  2708. //Method inherited from \Illuminate\Database\Connection
  2709. return \Illuminate\Database\PostgresConnection::getName();
  2710. }
  2711. /**
  2712. * Get an option from the configuration options.
  2713. *
  2714. * @param string $option
  2715. * @return mixed
  2716. * @static
  2717. */
  2718. public static function getConfig($option){
  2719. //Method inherited from \Illuminate\Database\Connection
  2720. return \Illuminate\Database\PostgresConnection::getConfig($option);
  2721. }
  2722. /**
  2723. * Get the PDO driver name.
  2724. *
  2725. * @return string
  2726. * @static
  2727. */
  2728. public static function getDriverName(){
  2729. //Method inherited from \Illuminate\Database\Connection
  2730. return \Illuminate\Database\PostgresConnection::getDriverName();
  2731. }
  2732. /**
  2733. * Get the query grammar used by the connection.
  2734. *
  2735. * @return \Illuminate\Database\Query\Grammars\Grammar
  2736. * @static
  2737. */
  2738. public static function getQueryGrammar(){
  2739. //Method inherited from \Illuminate\Database\Connection
  2740. return \Illuminate\Database\PostgresConnection::getQueryGrammar();
  2741. }
  2742. /**
  2743. * Set the query grammar used by the connection.
  2744. *
  2745. * @param \Illuminate\Database\Query\Grammars\Grammar
  2746. * @return void
  2747. * @static
  2748. */
  2749. public static function setQueryGrammar($grammar){
  2750. //Method inherited from \Illuminate\Database\Connection
  2751. \Illuminate\Database\PostgresConnection::setQueryGrammar($grammar);
  2752. }
  2753. /**
  2754. * Get the schema grammar used by the connection.
  2755. *
  2756. * @return \Illuminate\Database\Schema\Grammars\Grammar
  2757. * @static
  2758. */
  2759. public static function getSchemaGrammar(){
  2760. //Method inherited from \Illuminate\Database\Connection
  2761. return \Illuminate\Database\PostgresConnection::getSchemaGrammar();
  2762. }
  2763. /**
  2764. * Set the schema grammar used by the connection.
  2765. *
  2766. * @param \Illuminate\Database\Schema\Grammars\Grammar
  2767. * @return void
  2768. * @static
  2769. */
  2770. public static function setSchemaGrammar($grammar){
  2771. //Method inherited from \Illuminate\Database\Connection
  2772. \Illuminate\Database\PostgresConnection::setSchemaGrammar($grammar);
  2773. }
  2774. /**
  2775. * Get the query post processor used by the connection.
  2776. *
  2777. * @return \Illuminate\Database\Query\Processors\Processor
  2778. * @static
  2779. */
  2780. public static function getPostProcessor(){
  2781. //Method inherited from \Illuminate\Database\Connection
  2782. return \Illuminate\Database\PostgresConnection::getPostProcessor();
  2783. }
  2784. /**
  2785. * Set the query post processor used by the connection.
  2786. *
  2787. * @param \Illuminate\Database\Query\Processors\Processor
  2788. * @return void
  2789. * @static
  2790. */
  2791. public static function setPostProcessor($processor){
  2792. //Method inherited from \Illuminate\Database\Connection
  2793. \Illuminate\Database\PostgresConnection::setPostProcessor($processor);
  2794. }
  2795. /**
  2796. * Get the event dispatcher used by the connection.
  2797. *
  2798. * @return \Illuminate\Contracts\Events\Dispatcher
  2799. * @static
  2800. */
  2801. public static function getEventDispatcher(){
  2802. //Method inherited from \Illuminate\Database\Connection
  2803. return \Illuminate\Database\PostgresConnection::getEventDispatcher();
  2804. }
  2805. /**
  2806. * Set the event dispatcher instance on the connection.
  2807. *
  2808. * @param \Illuminate\Contracts\Events\Dispatcher
  2809. * @return void
  2810. * @static
  2811. */
  2812. public static function setEventDispatcher($events){
  2813. //Method inherited from \Illuminate\Database\Connection
  2814. \Illuminate\Database\PostgresConnection::setEventDispatcher($events);
  2815. }
  2816. /**
  2817. * Determine if the connection in a "dry run".
  2818. *
  2819. * @return bool
  2820. * @static
  2821. */
  2822. public static function pretending(){
  2823. //Method inherited from \Illuminate\Database\Connection
  2824. return \Illuminate\Database\PostgresConnection::pretending();
  2825. }
  2826. /**
  2827. * Get the default fetch mode for the connection.
  2828. *
  2829. * @return int
  2830. * @static
  2831. */
  2832. public static function getFetchMode(){
  2833. //Method inherited from \Illuminate\Database\Connection
  2834. return \Illuminate\Database\PostgresConnection::getFetchMode();
  2835. }
  2836. /**
  2837. * Set the default fetch mode for the connection.
  2838. *
  2839. * @param int $fetchMode
  2840. * @return int
  2841. * @static
  2842. */
  2843. public static function setFetchMode($fetchMode){
  2844. //Method inherited from \Illuminate\Database\Connection
  2845. return \Illuminate\Database\PostgresConnection::setFetchMode($fetchMode);
  2846. }
  2847. /**
  2848. * Get the connection query log.
  2849. *
  2850. * @return array
  2851. * @static
  2852. */
  2853. public static function getQueryLog(){
  2854. //Method inherited from \Illuminate\Database\Connection
  2855. return \Illuminate\Database\PostgresConnection::getQueryLog();
  2856. }
  2857. /**
  2858. * Clear the query log.
  2859. *
  2860. * @return void
  2861. * @static
  2862. */
  2863. public static function flushQueryLog(){
  2864. //Method inherited from \Illuminate\Database\Connection
  2865. \Illuminate\Database\PostgresConnection::flushQueryLog();
  2866. }
  2867. /**
  2868. * Enable the query log on the connection.
  2869. *
  2870. * @return void
  2871. * @static
  2872. */
  2873. public static function enableQueryLog(){
  2874. //Method inherited from \Illuminate\Database\Connection
  2875. \Illuminate\Database\PostgresConnection::enableQueryLog();
  2876. }
  2877. /**
  2878. * Disable the query log on the connection.
  2879. *
  2880. * @return void
  2881. * @static
  2882. */
  2883. public static function disableQueryLog(){
  2884. //Method inherited from \Illuminate\Database\Connection
  2885. \Illuminate\Database\PostgresConnection::disableQueryLog();
  2886. }
  2887. /**
  2888. * Determine whether we're logging queries.
  2889. *
  2890. * @return bool
  2891. * @static
  2892. */
  2893. public static function logging(){
  2894. //Method inherited from \Illuminate\Database\Connection
  2895. return \Illuminate\Database\PostgresConnection::logging();
  2896. }
  2897. /**
  2898. * Get the name of the connected database.
  2899. *
  2900. * @return string
  2901. * @static
  2902. */
  2903. public static function getDatabaseName(){
  2904. //Method inherited from \Illuminate\Database\Connection
  2905. return \Illuminate\Database\PostgresConnection::getDatabaseName();
  2906. }
  2907. /**
  2908. * Set the name of the connected database.
  2909. *
  2910. * @param string $database
  2911. * @return string
  2912. * @static
  2913. */
  2914. public static function setDatabaseName($database){
  2915. //Method inherited from \Illuminate\Database\Connection
  2916. return \Illuminate\Database\PostgresConnection::setDatabaseName($database);
  2917. }
  2918. /**
  2919. * Get the table prefix for the connection.
  2920. *
  2921. * @return string
  2922. * @static
  2923. */
  2924. public static function getTablePrefix(){
  2925. //Method inherited from \Illuminate\Database\Connection
  2926. return \Illuminate\Database\PostgresConnection::getTablePrefix();
  2927. }
  2928. /**
  2929. * Set the table prefix in use by the connection.
  2930. *
  2931. * @param string $prefix
  2932. * @return void
  2933. * @static
  2934. */
  2935. public static function setTablePrefix($prefix){
  2936. //Method inherited from \Illuminate\Database\Connection
  2937. \Illuminate\Database\PostgresConnection::setTablePrefix($prefix);
  2938. }
  2939. /**
  2940. * Set the table prefix and return the grammar.
  2941. *
  2942. * @param \Illuminate\Database\Grammar $grammar
  2943. * @return \Illuminate\Database\Grammar
  2944. * @static
  2945. */
  2946. public static function withTablePrefix($grammar){
  2947. //Method inherited from \Illuminate\Database\Connection
  2948. return \Illuminate\Database\PostgresConnection::withTablePrefix($grammar);
  2949. }
  2950. }
  2951. class Eloquent extends \Illuminate\Database\Eloquent\Model{
  2952. /**
  2953. * Find a model by its primary key.
  2954. *
  2955. * @param array $ids
  2956. * @param array $columns
  2957. * @return \Illuminate\Database\Eloquent\Collection
  2958. * @static
  2959. */
  2960. public static function findMany($ids, $columns = array()){
  2961. return \Illuminate\Database\Eloquent\Builder::findMany($ids, $columns);
  2962. }
  2963. /**
  2964. * Find a model by its primary key or throw an exception.
  2965. *
  2966. * @param mixed $id
  2967. * @param array $columns
  2968. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  2969. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  2970. * @static
  2971. */
  2972. public static function findOrFail($id, $columns = array()){
  2973. return \Illuminate\Database\Eloquent\Builder::findOrFail($id, $columns);
  2974. }
  2975. /**
  2976. * Execute the query and get the first result.
  2977. *
  2978. * @param array $columns
  2979. * @return \Illuminate\Database\Eloquent\Model|static|null
  2980. * @static
  2981. */
  2982. public static function first($columns = array()){
  2983. return \Illuminate\Database\Eloquent\Builder::first($columns);
  2984. }
  2985. /**
  2986. * Execute the query and get the first result or throw an exception.
  2987. *
  2988. * @param array $columns
  2989. * @return \Illuminate\Database\Eloquent\Model|static
  2990. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  2991. * @static
  2992. */
  2993. public static function firstOrFail($columns = array()){
  2994. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  2995. }
  2996. /**
  2997. * Execute the query as a "select" statement.
  2998. *
  2999. * @param array $columns
  3000. * @return \Illuminate\Database\Eloquent\Collection|static[]
  3001. * @static
  3002. */
  3003. public static function get($columns = array()){
  3004. return \Illuminate\Database\Eloquent\Builder::get($columns);
  3005. }
  3006. /**
  3007. * Pluck a single column from the database.
  3008. *
  3009. * @param string $column
  3010. * @return mixed
  3011. * @static
  3012. */
  3013. public static function pluck($column){
  3014. return \Illuminate\Database\Eloquent\Builder::pluck($column);
  3015. }
  3016. /**
  3017. * Chunk the results of the query.
  3018. *
  3019. * @param int $count
  3020. * @param callable $callback
  3021. * @return void
  3022. * @static
  3023. */
  3024. public static function chunk($count, $callback){
  3025. \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  3026. }
  3027. /**
  3028. * Get an array with the values of a given column.
  3029. *
  3030. * @param string $column
  3031. * @param string $key
  3032. * @return array
  3033. * @static
  3034. */
  3035. public static function lists($column, $key = null){
  3036. return \Illuminate\Database\Eloquent\Builder::lists($column, $key);
  3037. }
  3038. /**
  3039. * Paginate the given query.
  3040. *
  3041. * @param int $perPage
  3042. * @param array $columns
  3043. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  3044. * @static
  3045. */
  3046. public static function paginate($perPage = null, $columns = array()){
  3047. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns);
  3048. }
  3049. /**
  3050. * Paginate the given query into a simple paginator.
  3051. *
  3052. * @param int $perPage
  3053. * @param array $columns
  3054. * @return \Illuminate\Contracts\Pagination\Paginator
  3055. * @static
  3056. */
  3057. public static function simplePaginate($perPage = null, $columns = array()){
  3058. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns);
  3059. }
  3060. /**
  3061. * Register a replacement for the default delete function.
  3062. *
  3063. * @param \Closure $callback
  3064. * @return void
  3065. * @static
  3066. */
  3067. public static function onDelete($callback){
  3068. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  3069. }
  3070. /**
  3071. * Get the hydrated models without eager loading.
  3072. *
  3073. * @param array $columns
  3074. * @return \Illuminate\Database\Eloquent\Model[]
  3075. * @static
  3076. */
  3077. public static function getModels($columns = array()){
  3078. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  3079. }
  3080. /**
  3081. * Eager load the relationships for the models.
  3082. *
  3083. * @param array $models
  3084. * @return array
  3085. * @static
  3086. */
  3087. public static function eagerLoadRelations($models){
  3088. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  3089. }
  3090. /**
  3091. * Add a basic where clause to the query.
  3092. *
  3093. * @param string $column
  3094. * @param string $operator
  3095. * @param mixed $value
  3096. * @param string $boolean
  3097. * @return $this
  3098. * @static
  3099. */
  3100. public static function where($column, $operator = null, $value = null, $boolean = 'and'){
  3101. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  3102. }
  3103. /**
  3104. * Add an "or where" clause to the query.
  3105. *
  3106. * @param string $column
  3107. * @param string $operator
  3108. * @param mixed $value
  3109. * @return \Illuminate\Database\Eloquent\Builder|static
  3110. * @static
  3111. */
  3112. public static function orWhere($column, $operator = null, $value = null){
  3113. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  3114. }
  3115. /**
  3116. * Add a relationship count condition to the query.
  3117. *
  3118. * @param string $relation
  3119. * @param string $operator
  3120. * @param int $count
  3121. * @param string $boolean
  3122. * @param \Closure|null $callback
  3123. * @return \Illuminate\Database\Eloquent\Builder|static
  3124. * @static
  3125. */
  3126. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null){
  3127. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  3128. }
  3129. /**
  3130. * Add a relationship count condition to the query.
  3131. *
  3132. * @param string $relation
  3133. * @param string $boolean
  3134. * @param \Closure|null $callback
  3135. * @return \Illuminate\Database\Eloquent\Builder|static
  3136. * @static
  3137. */
  3138. public static function doesntHave($relation, $boolean = 'and', $callback = null){
  3139. return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
  3140. }
  3141. /**
  3142. * Add a relationship count condition to the query with where clauses.
  3143. *
  3144. * @param string $relation
  3145. * @param \Closure $callback
  3146. * @param string $operator
  3147. * @param int $count
  3148. * @return \Illuminate\Database\Eloquent\Builder|static
  3149. * @static
  3150. */
  3151. public static function whereHas($relation, $callback, $operator = '>=', $count = 1){
  3152. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  3153. }
  3154. /**
  3155. * Add a relationship count condition to the query with where clauses.
  3156. *
  3157. * @param string $relation
  3158. * @param \Closure|null $callback
  3159. * @return \Illuminate\Database\Eloquent\Builder|static
  3160. * @static
  3161. */
  3162. public static function whereDoesntHave($relation, $callback = null){
  3163. return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
  3164. }
  3165. /**
  3166. * Add a relationship count condition to the query with an "or".
  3167. *
  3168. * @param string $relation
  3169. * @param string $operator
  3170. * @param int $count
  3171. * @return \Illuminate\Database\Eloquent\Builder|static
  3172. * @static
  3173. */
  3174. public static function orHas($relation, $operator = '>=', $count = 1){
  3175. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  3176. }
  3177. /**
  3178. * Add a relationship count condition to the query with where clauses and an "or".
  3179. *
  3180. * @param string $relation
  3181. * @param \Closure $callback
  3182. * @param string $operator
  3183. * @param int $count
  3184. * @return \Illuminate\Database\Eloquent\Builder|static
  3185. * @static
  3186. */
  3187. public static function orWhereHas($relation, $callback, $operator = '>=', $count = 1){
  3188. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  3189. }
  3190. /**
  3191. * Get the underlying query builder instance.
  3192. *
  3193. * @return \Illuminate\Database\Query\Builder|static
  3194. * @static
  3195. */
  3196. public static function getQuery(){
  3197. return \Illuminate\Database\Eloquent\Builder::getQuery();
  3198. }
  3199. /**
  3200. * Set the underlying query builder instance.
  3201. *
  3202. * @param \Illuminate\Database\Query\Builder $query
  3203. * @return $this
  3204. * @static
  3205. */
  3206. public static function setQuery($query){
  3207. return \Illuminate\Database\Eloquent\Builder::setQuery($query);
  3208. }
  3209. /**
  3210. * Get the relationships being eagerly loaded.
  3211. *
  3212. * @return array
  3213. * @static
  3214. */
  3215. public static function getEagerLoads(){
  3216. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  3217. }
  3218. /**
  3219. * Set the relationships being eagerly loaded.
  3220. *
  3221. * @param array $eagerLoad
  3222. * @return $this
  3223. * @static
  3224. */
  3225. public static function setEagerLoads($eagerLoad){
  3226. return \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  3227. }
  3228. /**
  3229. * Get the model instance being queried.
  3230. *
  3231. * @return \Illuminate\Database\Eloquent\Model
  3232. * @static
  3233. */
  3234. public static function getModel(){
  3235. return \Illuminate\Database\Eloquent\Builder::getModel();
  3236. }
  3237. /**
  3238. * Set a model instance for the model being queried.
  3239. *
  3240. * @param \Illuminate\Database\Eloquent\Model $model
  3241. * @return $this
  3242. * @static
  3243. */
  3244. public static function setModel($model){
  3245. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  3246. }
  3247. /**
  3248. * Extend the builder with a given callback.
  3249. *
  3250. * @param string $name
  3251. * @param \Closure $callback
  3252. * @return void
  3253. * @static
  3254. */
  3255. public static function macro($name, $callback){
  3256. \Illuminate\Database\Eloquent\Builder::macro($name, $callback);
  3257. }
  3258. /**
  3259. * Get the given macro by name.
  3260. *
  3261. * @param string $name
  3262. * @return \Closure
  3263. * @static
  3264. */
  3265. public static function getMacro($name){
  3266. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  3267. }
  3268. /**
  3269. * Set the columns to be selected.
  3270. *
  3271. * @param array $columns
  3272. * @return $this
  3273. * @static
  3274. */
  3275. public static function select($columns = array()){
  3276. return \Illuminate\Database\Query\Builder::select($columns);
  3277. }
  3278. /**
  3279. * Add a new "raw" select expression to the query.
  3280. *
  3281. * @param string $expression
  3282. * @param array $bindings
  3283. * @return \Illuminate\Database\Query\Builder|static
  3284. * @static
  3285. */
  3286. public static function selectRaw($expression, $bindings = array()){
  3287. return \Illuminate\Database\Query\Builder::selectRaw($expression, $bindings);
  3288. }
  3289. /**
  3290. * Add a subselect expression to the query.
  3291. *
  3292. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  3293. * @param string $as
  3294. * @return \Illuminate\Database\Query\Builder|static
  3295. * @static
  3296. */
  3297. public static function selectSub($query, $as){
  3298. return \Illuminate\Database\Query\Builder::selectSub($query, $as);
  3299. }
  3300. /**
  3301. * Add a new select column to the query.
  3302. *
  3303. * @param mixed $column
  3304. * @return $this
  3305. * @static
  3306. */
  3307. public static function addSelect($column){
  3308. return \Illuminate\Database\Query\Builder::addSelect($column);
  3309. }
  3310. /**
  3311. * Force the query to only return distinct results.
  3312. *
  3313. * @return $this
  3314. * @static
  3315. */
  3316. public static function distinct(){
  3317. return \Illuminate\Database\Query\Builder::distinct();
  3318. }
  3319. /**
  3320. * Set the table which the query is targeting.
  3321. *
  3322. * @param string $table
  3323. * @return $this
  3324. * @static
  3325. */
  3326. public static function from($table){
  3327. return \Illuminate\Database\Query\Builder::from($table);
  3328. }
  3329. /**
  3330. * Add a join clause to the query.
  3331. *
  3332. * @param string $table
  3333. * @param string $one
  3334. * @param string $operator
  3335. * @param string $two
  3336. * @param string $type
  3337. * @param bool $where
  3338. * @return $this
  3339. * @static
  3340. */
  3341. public static function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false){
  3342. return \Illuminate\Database\Query\Builder::join($table, $one, $operator, $two, $type, $where);
  3343. }
  3344. /**
  3345. * Add a "join where" clause to the query.
  3346. *
  3347. * @param string $table
  3348. * @param string $one
  3349. * @param string $operator
  3350. * @param string $two
  3351. * @param string $type
  3352. * @return \Illuminate\Database\Query\Builder|static
  3353. * @static
  3354. */
  3355. public static function joinWhere($table, $one, $operator, $two, $type = 'inner'){
  3356. return \Illuminate\Database\Query\Builder::joinWhere($table, $one, $operator, $two, $type);
  3357. }
  3358. /**
  3359. * Add a left join to the query.
  3360. *
  3361. * @param string $table
  3362. * @param string $first
  3363. * @param string $operator
  3364. * @param string $second
  3365. * @return \Illuminate\Database\Query\Builder|static
  3366. * @static
  3367. */
  3368. public static function leftJoin($table, $first, $operator = null, $second = null){
  3369. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  3370. }
  3371. /**
  3372. * Add a "join where" clause to the query.
  3373. *
  3374. * @param string $table
  3375. * @param string $one
  3376. * @param string $operator
  3377. * @param string $two
  3378. * @return \Illuminate\Database\Query\Builder|static
  3379. * @static
  3380. */
  3381. public static function leftJoinWhere($table, $one, $operator, $two){
  3382. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $one, $operator, $two);
  3383. }
  3384. /**
  3385. * Add a right join to the query.
  3386. *
  3387. * @param string $table
  3388. * @param string $first
  3389. * @param string $operator
  3390. * @param string $second
  3391. * @return \Illuminate\Database\Query\Builder|static
  3392. * @static
  3393. */
  3394. public static function rightJoin($table, $first, $operator = null, $second = null){
  3395. return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
  3396. }
  3397. /**
  3398. * Add a "right join where" clause to the query.
  3399. *
  3400. * @param string $table
  3401. * @param string $one
  3402. * @param string $operator
  3403. * @param string $two
  3404. * @return \Illuminate\Database\Query\Builder|static
  3405. * @static
  3406. */
  3407. public static function rightJoinWhere($table, $one, $operator, $two){
  3408. return \Illuminate\Database\Query\Builder::rightJoinWhere($table, $one, $operator, $two);
  3409. }
  3410. /**
  3411. * Add a raw where clause to the query.
  3412. *
  3413. * @param string $sql
  3414. * @param array $bindings
  3415. * @param string $boolean
  3416. * @return $this
  3417. * @static
  3418. */
  3419. public static function whereRaw($sql, $bindings = array(), $boolean = 'and'){
  3420. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  3421. }
  3422. /**
  3423. * Add a raw or where clause to the query.
  3424. *
  3425. * @param string $sql
  3426. * @param array $bindings
  3427. * @return \Illuminate\Database\Query\Builder|static
  3428. * @static
  3429. */
  3430. public static function orWhereRaw($sql, $bindings = array()){
  3431. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  3432. }
  3433. /**
  3434. * Add a where between statement to the query.
  3435. *
  3436. * @param string $column
  3437. * @param array $values
  3438. * @param string $boolean
  3439. * @param bool $not
  3440. * @return $this
  3441. * @static
  3442. */
  3443. public static function whereBetween($column, $values, $boolean = 'and', $not = false){
  3444. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  3445. }
  3446. /**
  3447. * Add an or where between statement to the query.
  3448. *
  3449. * @param string $column
  3450. * @param array $values
  3451. * @return \Illuminate\Database\Query\Builder|static
  3452. * @static
  3453. */
  3454. public static function orWhereBetween($column, $values){
  3455. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  3456. }
  3457. /**
  3458. * Add a where not between statement to the query.
  3459. *
  3460. * @param string $column
  3461. * @param array $values
  3462. * @param string $boolean
  3463. * @return \Illuminate\Database\Query\Builder|static
  3464. * @static
  3465. */
  3466. public static function whereNotBetween($column, $values, $boolean = 'and'){
  3467. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  3468. }
  3469. /**
  3470. * Add an or where not between statement to the query.
  3471. *
  3472. * @param string $column
  3473. * @param array $values
  3474. * @return \Illuminate\Database\Query\Builder|static
  3475. * @static
  3476. */
  3477. public static function orWhereNotBetween($column, $values){
  3478. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  3479. }
  3480. /**
  3481. * Add a nested where statement to the query.
  3482. *
  3483. * @param \Closure $callback
  3484. * @param string $boolean
  3485. * @return \Illuminate\Database\Query\Builder|static
  3486. * @static
  3487. */
  3488. public static function whereNested($callback, $boolean = 'and'){
  3489. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  3490. }
  3491. /**
  3492. * Add another query builder as a nested where to the query builder.
  3493. *
  3494. * @param \Illuminate\Database\Query\Builder|static $query
  3495. * @param string $boolean
  3496. * @return $this
  3497. * @static
  3498. */
  3499. public static function addNestedWhereQuery($query, $boolean = 'and'){
  3500. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  3501. }
  3502. /**
  3503. * Add an exists clause to the query.
  3504. *
  3505. * @param \Closure $callback
  3506. * @param string $boolean
  3507. * @param bool $not
  3508. * @return $this
  3509. * @static
  3510. */
  3511. public static function whereExists($callback, $boolean = 'and', $not = false){
  3512. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  3513. }
  3514. /**
  3515. * Add an or exists clause to the query.
  3516. *
  3517. * @param \Closure $callback
  3518. * @param bool $not
  3519. * @return \Illuminate\Database\Query\Builder|static
  3520. * @static
  3521. */
  3522. public static function orWhereExists($callback, $not = false){
  3523. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  3524. }
  3525. /**
  3526. * Add a where not exists clause to the query.
  3527. *
  3528. * @param \Closure $callback
  3529. * @param string $boolean
  3530. * @return \Illuminate\Database\Query\Builder|static
  3531. * @static
  3532. */
  3533. public static function whereNotExists($callback, $boolean = 'and'){
  3534. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  3535. }
  3536. /**
  3537. * Add a where not exists clause to the query.
  3538. *
  3539. * @param \Closure $callback
  3540. * @return \Illuminate\Database\Query\Builder|static
  3541. * @static
  3542. */
  3543. public static function orWhereNotExists($callback){
  3544. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  3545. }
  3546. /**
  3547. * Add a "where in" clause to the query.
  3548. *
  3549. * @param string $column
  3550. * @param mixed $values
  3551. * @param string $boolean
  3552. * @param bool $not
  3553. * @return $this
  3554. * @static
  3555. */
  3556. public static function whereIn($column, $values, $boolean = 'and', $not = false){
  3557. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  3558. }
  3559. /**
  3560. * Add an "or where in" clause to the query.
  3561. *
  3562. * @param string $column
  3563. * @param mixed $values
  3564. * @return \Illuminate\Database\Query\Builder|static
  3565. * @static
  3566. */
  3567. public static function orWhereIn($column, $values){
  3568. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  3569. }
  3570. /**
  3571. * Add a "where not in" clause to the query.
  3572. *
  3573. * @param string $column
  3574. * @param mixed $values
  3575. * @param string $boolean
  3576. * @return \Illuminate\Database\Query\Builder|static
  3577. * @static
  3578. */
  3579. public static function whereNotIn($column, $values, $boolean = 'and'){
  3580. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  3581. }
  3582. /**
  3583. * Add an "or where not in" clause to the query.
  3584. *
  3585. * @param string $column
  3586. * @param mixed $values
  3587. * @return \Illuminate\Database\Query\Builder|static
  3588. * @static
  3589. */
  3590. public static function orWhereNotIn($column, $values){
  3591. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  3592. }
  3593. /**
  3594. * Add a "where null" clause to the query.
  3595. *
  3596. * @param string $column
  3597. * @param string $boolean
  3598. * @param bool $not
  3599. * @return $this
  3600. * @static
  3601. */
  3602. public static function whereNull($column, $boolean = 'and', $not = false){
  3603. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  3604. }
  3605. /**
  3606. * Add an "or where null" clause to the query.
  3607. *
  3608. * @param string $column
  3609. * @return \Illuminate\Database\Query\Builder|static
  3610. * @static
  3611. */
  3612. public static function orWhereNull($column){
  3613. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  3614. }
  3615. /**
  3616. * Add a "where not null" clause to the query.
  3617. *
  3618. * @param string $column
  3619. * @param string $boolean
  3620. * @return \Illuminate\Database\Query\Builder|static
  3621. * @static
  3622. */
  3623. public static function whereNotNull($column, $boolean = 'and'){
  3624. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  3625. }
  3626. /**
  3627. * Add an "or where not null" clause to the query.
  3628. *
  3629. * @param string $column
  3630. * @return \Illuminate\Database\Query\Builder|static
  3631. * @static
  3632. */
  3633. public static function orWhereNotNull($column){
  3634. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  3635. }
  3636. /**
  3637. * Add a "where date" statement to the query.
  3638. *
  3639. * @param string $column
  3640. * @param string $operator
  3641. * @param int $value
  3642. * @param string $boolean
  3643. * @return \Illuminate\Database\Query\Builder|static
  3644. * @static
  3645. */
  3646. public static function whereDate($column, $operator, $value, $boolean = 'and'){
  3647. return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
  3648. }
  3649. /**
  3650. * Add a "where day" statement to the query.
  3651. *
  3652. * @param string $column
  3653. * @param string $operator
  3654. * @param int $value
  3655. * @param string $boolean
  3656. * @return \Illuminate\Database\Query\Builder|static
  3657. * @static
  3658. */
  3659. public static function whereDay($column, $operator, $value, $boolean = 'and'){
  3660. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  3661. }
  3662. /**
  3663. * Add a "where month" statement to the query.
  3664. *
  3665. * @param string $column
  3666. * @param string $operator
  3667. * @param int $value
  3668. * @param string $boolean
  3669. * @return \Illuminate\Database\Query\Builder|static
  3670. * @static
  3671. */
  3672. public static function whereMonth($column, $operator, $value, $boolean = 'and'){
  3673. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  3674. }
  3675. /**
  3676. * Add a "where year" statement to the query.
  3677. *
  3678. * @param string $column
  3679. * @param string $operator
  3680. * @param int $value
  3681. * @param string $boolean
  3682. * @return \Illuminate\Database\Query\Builder|static
  3683. * @static
  3684. */
  3685. public static function whereYear($column, $operator, $value, $boolean = 'and'){
  3686. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  3687. }
  3688. /**
  3689. * Handles dynamic "where" clauses to the query.
  3690. *
  3691. * @param string $method
  3692. * @param string $parameters
  3693. * @return $this
  3694. * @static
  3695. */
  3696. public static function dynamicWhere($method, $parameters){
  3697. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  3698. }
  3699. /**
  3700. * Add a "group by" clause to the query.
  3701. *
  3702. * @param array|string $column,...
  3703. * @return $this
  3704. * @static
  3705. */
  3706. public static function groupBy(){
  3707. return \Illuminate\Database\Query\Builder::groupBy();
  3708. }
  3709. /**
  3710. * Add a "having" clause to the query.
  3711. *
  3712. * @param string $column
  3713. * @param string $operator
  3714. * @param string $value
  3715. * @param string $boolean
  3716. * @return $this
  3717. * @static
  3718. */
  3719. public static function having($column, $operator = null, $value = null, $boolean = 'and'){
  3720. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  3721. }
  3722. /**
  3723. * Add a "or having" clause to the query.
  3724. *
  3725. * @param string $column
  3726. * @param string $operator
  3727. * @param string $value
  3728. * @return \Illuminate\Database\Query\Builder|static
  3729. * @static
  3730. */
  3731. public static function orHaving($column, $operator = null, $value = null){
  3732. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  3733. }
  3734. /**
  3735. * Add a raw having clause to the query.
  3736. *
  3737. * @param string $sql
  3738. * @param array $bindings
  3739. * @param string $boolean
  3740. * @return $this
  3741. * @static
  3742. */
  3743. public static function havingRaw($sql, $bindings = array(), $boolean = 'and'){
  3744. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  3745. }
  3746. /**
  3747. * Add a raw or having clause to the query.
  3748. *
  3749. * @param string $sql
  3750. * @param array $bindings
  3751. * @return \Illuminate\Database\Query\Builder|static
  3752. * @static
  3753. */
  3754. public static function orHavingRaw($sql, $bindings = array()){
  3755. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  3756. }
  3757. /**
  3758. * Add an "order by" clause to the query.
  3759. *
  3760. * @param string $column
  3761. * @param string $direction
  3762. * @return $this
  3763. * @static
  3764. */
  3765. public static function orderBy($column, $direction = 'asc'){
  3766. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  3767. }
  3768. /**
  3769. * Add an "order by" clause for a timestamp to the query.
  3770. *
  3771. * @param string $column
  3772. * @return \Illuminate\Database\Query\Builder|static
  3773. * @static
  3774. */
  3775. public static function latest($column = 'created_at'){
  3776. return \Illuminate\Database\Query\Builder::latest($column);
  3777. }
  3778. /**
  3779. * Add an "order by" clause for a timestamp to the query.
  3780. *
  3781. * @param string $column
  3782. * @return \Illuminate\Database\Query\Builder|static
  3783. * @static
  3784. */
  3785. public static function oldest($column = 'created_at'){
  3786. return \Illuminate\Database\Query\Builder::oldest($column);
  3787. }
  3788. /**
  3789. * Add a raw "order by" clause to the query.
  3790. *
  3791. * @param string $sql
  3792. * @param array $bindings
  3793. * @return $this
  3794. * @static
  3795. */
  3796. public static function orderByRaw($sql, $bindings = array()){
  3797. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  3798. }
  3799. /**
  3800. * Set the "offset" value of the query.
  3801. *
  3802. * @param int $value
  3803. * @return $this
  3804. * @static
  3805. */
  3806. public static function offset($value){
  3807. return \Illuminate\Database\Query\Builder::offset($value);
  3808. }
  3809. /**
  3810. * Alias to set the "offset" value of the query.
  3811. *
  3812. * @param int $value
  3813. * @return \Illuminate\Database\Query\Builder|static
  3814. * @static
  3815. */
  3816. public static function skip($value){
  3817. return \Illuminate\Database\Query\Builder::skip($value);
  3818. }
  3819. /**
  3820. * Set the "limit" value of the query.
  3821. *
  3822. * @param int $value
  3823. * @return $this
  3824. * @static
  3825. */
  3826. public static function limit($value){
  3827. return \Illuminate\Database\Query\Builder::limit($value);
  3828. }
  3829. /**
  3830. * Alias to set the "limit" value of the query.
  3831. *
  3832. * @param int $value
  3833. * @return \Illuminate\Database\Query\Builder|static
  3834. * @static
  3835. */
  3836. public static function take($value){
  3837. return \Illuminate\Database\Query\Builder::take($value);
  3838. }
  3839. /**
  3840. * Set the limit and offset for a given page.
  3841. *
  3842. * @param int $page
  3843. * @param int $perPage
  3844. * @return \Illuminate\Database\Query\Builder|static
  3845. * @static
  3846. */
  3847. public static function forPage($page, $perPage = 15){
  3848. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  3849. }
  3850. /**
  3851. * Add a union statement to the query.
  3852. *
  3853. * @param \Illuminate\Database\Query\Builder|\Closure $query
  3854. * @param bool $all
  3855. * @return \Illuminate\Database\Query\Builder|static
  3856. * @static
  3857. */
  3858. public static function union($query, $all = false){
  3859. return \Illuminate\Database\Query\Builder::union($query, $all);
  3860. }
  3861. /**
  3862. * Add a union all statement to the query.
  3863. *
  3864. * @param \Illuminate\Database\Query\Builder|\Closure $query
  3865. * @return \Illuminate\Database\Query\Builder|static
  3866. * @static
  3867. */
  3868. public static function unionAll($query){
  3869. return \Illuminate\Database\Query\Builder::unionAll($query);
  3870. }
  3871. /**
  3872. * Lock the selected rows in the table.
  3873. *
  3874. * @param bool $value
  3875. * @return $this
  3876. * @static
  3877. */
  3878. public static function lock($value = true){
  3879. return \Illuminate\Database\Query\Builder::lock($value);
  3880. }
  3881. /**
  3882. * Lock the selected rows in the table for updating.
  3883. *
  3884. * @return \Illuminate\Database\Query\Builder
  3885. * @static
  3886. */
  3887. public static function lockForUpdate(){
  3888. return \Illuminate\Database\Query\Builder::lockForUpdate();
  3889. }
  3890. /**
  3891. * Share lock the selected rows in the table.
  3892. *
  3893. * @return \Illuminate\Database\Query\Builder
  3894. * @static
  3895. */
  3896. public static function sharedLock(){
  3897. return \Illuminate\Database\Query\Builder::sharedLock();
  3898. }
  3899. /**
  3900. * Get the SQL representation of the query.
  3901. *
  3902. * @return string
  3903. * @static
  3904. */
  3905. public static function toSql(){
  3906. return \Illuminate\Database\Query\Builder::toSql();
  3907. }
  3908. /**
  3909. * Execute the query as a fresh "select" statement.
  3910. *
  3911. * @param array $columns
  3912. * @return array|static[]
  3913. * @static
  3914. */
  3915. public static function getFresh($columns = array()){
  3916. return \Illuminate\Database\Query\Builder::getFresh($columns);
  3917. }
  3918. /**
  3919. * Get the count of the total records for the paginator.
  3920. *
  3921. * @return int
  3922. * @static
  3923. */
  3924. public static function getCountForPagination(){
  3925. return \Illuminate\Database\Query\Builder::getCountForPagination();
  3926. }
  3927. /**
  3928. * Concatenate values of a given column as a string.
  3929. *
  3930. * @param string $column
  3931. * @param string $glue
  3932. * @return string
  3933. * @static
  3934. */
  3935. public static function implode($column, $glue = null){
  3936. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  3937. }
  3938. /**
  3939. * Determine if any rows exist for the current query.
  3940. *
  3941. * @return bool
  3942. * @static
  3943. */
  3944. public static function exists(){
  3945. return \Illuminate\Database\Query\Builder::exists();
  3946. }
  3947. /**
  3948. * Retrieve the "count" result of the query.
  3949. *
  3950. * @param string $columns
  3951. * @return int
  3952. * @static
  3953. */
  3954. public static function count($columns = '*'){
  3955. return \Illuminate\Database\Query\Builder::count($columns);
  3956. }
  3957. /**
  3958. * Retrieve the minimum value of a given column.
  3959. *
  3960. * @param string $column
  3961. * @return mixed
  3962. * @static
  3963. */
  3964. public static function min($column){
  3965. return \Illuminate\Database\Query\Builder::min($column);
  3966. }
  3967. /**
  3968. * Retrieve the maximum value of a given column.
  3969. *
  3970. * @param string $column
  3971. * @return mixed
  3972. * @static
  3973. */
  3974. public static function max($column){
  3975. return \Illuminate\Database\Query\Builder::max($column);
  3976. }
  3977. /**
  3978. * Retrieve the sum of the values of a given column.
  3979. *
  3980. * @param string $column
  3981. * @return mixed
  3982. * @static
  3983. */
  3984. public static function sum($column){
  3985. return \Illuminate\Database\Query\Builder::sum($column);
  3986. }
  3987. /**
  3988. * Retrieve the average of the values of a given column.
  3989. *
  3990. * @param string $column
  3991. * @return mixed
  3992. * @static
  3993. */
  3994. public static function avg($column){
  3995. return \Illuminate\Database\Query\Builder::avg($column);
  3996. }
  3997. /**
  3998. * Execute an aggregate function on the database.
  3999. *
  4000. * @param string $function
  4001. * @param array $columns
  4002. * @return mixed
  4003. * @static
  4004. */
  4005. public static function aggregate($function, $columns = array()){
  4006. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  4007. }
  4008. /**
  4009. * Insert a new record into the database.
  4010. *
  4011. * @param array $values
  4012. * @return bool
  4013. * @static
  4014. */
  4015. public static function insert($values){
  4016. return \Illuminate\Database\Query\Builder::insert($values);
  4017. }
  4018. /**
  4019. * Insert a new record and get the value of the primary key.
  4020. *
  4021. * @param array $values
  4022. * @param string $sequence
  4023. * @return int
  4024. * @static
  4025. */
  4026. public static function insertGetId($values, $sequence = null){
  4027. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  4028. }
  4029. /**
  4030. * Run a truncate statement on the table.
  4031. *
  4032. * @return void
  4033. * @static
  4034. */
  4035. public static function truncate(){
  4036. \Illuminate\Database\Query\Builder::truncate();
  4037. }
  4038. /**
  4039. * Merge an array of where clauses and bindings.
  4040. *
  4041. * @param array $wheres
  4042. * @param array $bindings
  4043. * @return void
  4044. * @static
  4045. */
  4046. public static function mergeWheres($wheres, $bindings){
  4047. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  4048. }
  4049. /**
  4050. * Create a raw database expression.
  4051. *
  4052. * @param mixed $value
  4053. * @return \Illuminate\Database\Query\Expression
  4054. * @static
  4055. */
  4056. public static function raw($value){
  4057. return \Illuminate\Database\Query\Builder::raw($value);
  4058. }
  4059. /**
  4060. * Get the current query value bindings in a flattened array.
  4061. *
  4062. * @return array
  4063. * @static
  4064. */
  4065. public static function getBindings(){
  4066. return \Illuminate\Database\Query\Builder::getBindings();
  4067. }
  4068. /**
  4069. * Get the raw array of bindings.
  4070. *
  4071. * @return array
  4072. * @static
  4073. */
  4074. public static function getRawBindings(){
  4075. return \Illuminate\Database\Query\Builder::getRawBindings();
  4076. }
  4077. /**
  4078. * Set the bindings on the query builder.
  4079. *
  4080. * @param array $bindings
  4081. * @param string $type
  4082. * @return $this
  4083. * @throws \InvalidArgumentException
  4084. * @static
  4085. */
  4086. public static function setBindings($bindings, $type = 'where'){
  4087. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  4088. }
  4089. /**
  4090. * Add a binding to the query.
  4091. *
  4092. * @param mixed $value
  4093. * @param string $type
  4094. * @return $this
  4095. * @throws \InvalidArgumentException
  4096. * @static
  4097. */
  4098. public static function addBinding($value, $type = 'where'){
  4099. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  4100. }
  4101. /**
  4102. * Merge an array of bindings into our bindings.
  4103. *
  4104. * @param \Illuminate\Database\Query\Builder $query
  4105. * @return $this
  4106. * @static
  4107. */
  4108. public static function mergeBindings($query){
  4109. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  4110. }
  4111. /**
  4112. * Get the database query processor instance.
  4113. *
  4114. * @return \Illuminate\Database\Query\Processors\Processor
  4115. * @static
  4116. */
  4117. public static function getProcessor(){
  4118. return \Illuminate\Database\Query\Builder::getProcessor();
  4119. }
  4120. /**
  4121. * Get the query grammar instance.
  4122. *
  4123. * @return \Illuminate\Database\Grammar
  4124. * @static
  4125. */
  4126. public static function getGrammar(){
  4127. return \Illuminate\Database\Query\Builder::getGrammar();
  4128. }
  4129. /**
  4130. * Use the write pdo for query.
  4131. *
  4132. * @return $this
  4133. * @static
  4134. */
  4135. public static function useWritePdo(){
  4136. return \Illuminate\Database\Query\Builder::useWritePdo();
  4137. }
  4138. }
  4139. class Event extends \Illuminate\Support\Facades\Event{
  4140. /**
  4141. * Register an event listener with the dispatcher.
  4142. *
  4143. * @param string|array $events
  4144. * @param mixed $listener
  4145. * @param int $priority
  4146. * @return void
  4147. * @static
  4148. */
  4149. public static function listen($events, $listener, $priority = 0){
  4150. \Illuminate\Events\Dispatcher::listen($events, $listener, $priority);
  4151. }
  4152. /**
  4153. * Determine if a given event has listeners.
  4154. *
  4155. * @param string $eventName
  4156. * @return bool
  4157. * @static
  4158. */
  4159. public static function hasListeners($eventName){
  4160. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  4161. }
  4162. /**
  4163. * Register an event and payload to be fired later.
  4164. *
  4165. * @param string $event
  4166. * @param array $payload
  4167. * @return void
  4168. * @static
  4169. */
  4170. public static function push($event, $payload = array()){
  4171. \Illuminate\Events\Dispatcher::push($event, $payload);
  4172. }
  4173. /**
  4174. * Register an event subscriber with the dispatcher.
  4175. *
  4176. * @param string $subscriber
  4177. * @return void
  4178. * @static
  4179. */
  4180. public static function subscribe($subscriber){
  4181. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  4182. }
  4183. /**
  4184. * Fire an event until the first non-null response is returned.
  4185. *
  4186. * @param string $event
  4187. * @param array $payload
  4188. * @return mixed
  4189. * @static
  4190. */
  4191. public static function until($event, $payload = array()){
  4192. return \Illuminate\Events\Dispatcher::until($event, $payload);
  4193. }
  4194. /**
  4195. * Flush a set of pushed events.
  4196. *
  4197. * @param string $event
  4198. * @return void
  4199. * @static
  4200. */
  4201. public static function flush($event){
  4202. \Illuminate\Events\Dispatcher::flush($event);
  4203. }
  4204. /**
  4205. * Get the event that is currently firing.
  4206. *
  4207. * @return string
  4208. * @static
  4209. */
  4210. public static function firing(){
  4211. return \Illuminate\Events\Dispatcher::firing();
  4212. }
  4213. /**
  4214. * Fire an event and call the listeners.
  4215. *
  4216. * @param string|object $event
  4217. * @param mixed $payload
  4218. * @param bool $halt
  4219. * @return array|null
  4220. * @static
  4221. */
  4222. public static function fire($event, $payload = array(), $halt = false){
  4223. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  4224. }
  4225. /**
  4226. * Get all of the listeners for a given event name.
  4227. *
  4228. * @param string $eventName
  4229. * @return array
  4230. * @static
  4231. */
  4232. public static function getListeners($eventName){
  4233. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  4234. }
  4235. /**
  4236. * Register an event listener with the dispatcher.
  4237. *
  4238. * @param mixed $listener
  4239. * @return mixed
  4240. * @static
  4241. */
  4242. public static function makeListener($listener){
  4243. return \Illuminate\Events\Dispatcher::makeListener($listener);
  4244. }
  4245. /**
  4246. * Create a class based listener using the IoC container.
  4247. *
  4248. * @param mixed $listener
  4249. * @return \Closure
  4250. * @static
  4251. */
  4252. public static function createClassListener($listener){
  4253. return \Illuminate\Events\Dispatcher::createClassListener($listener);
  4254. }
  4255. /**
  4256. * Remove a set of listeners from the dispatcher.
  4257. *
  4258. * @param string $event
  4259. * @return void
  4260. * @static
  4261. */
  4262. public static function forget($event){
  4263. \Illuminate\Events\Dispatcher::forget($event);
  4264. }
  4265. /**
  4266. * Forget all of the pushed listeners.
  4267. *
  4268. * @return void
  4269. * @static
  4270. */
  4271. public static function forgetPushed(){
  4272. \Illuminate\Events\Dispatcher::forgetPushed();
  4273. }
  4274. /**
  4275. * Set the queue resolver implementation.
  4276. *
  4277. * @param callable $resolver
  4278. * @return $this
  4279. * @static
  4280. */
  4281. public static function setQueueResolver($resolver){
  4282. return \Illuminate\Events\Dispatcher::setQueueResolver($resolver);
  4283. }
  4284. }
  4285. class File extends \Illuminate\Support\Facades\File{
  4286. /**
  4287. * Determine if a file exists.
  4288. *
  4289. * @param string $path
  4290. * @return bool
  4291. * @static
  4292. */
  4293. public static function exists($path){
  4294. return \Illuminate\Filesystem\Filesystem::exists($path);
  4295. }
  4296. /**
  4297. * Get the contents of a file.
  4298. *
  4299. * @param string $path
  4300. * @return string
  4301. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4302. * @static
  4303. */
  4304. public static function get($path){
  4305. return \Illuminate\Filesystem\Filesystem::get($path);
  4306. }
  4307. /**
  4308. * Get the returned value of a file.
  4309. *
  4310. * @param string $path
  4311. * @return mixed
  4312. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4313. * @static
  4314. */
  4315. public static function getRequire($path){
  4316. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  4317. }
  4318. /**
  4319. * Require the given file once.
  4320. *
  4321. * @param string $file
  4322. * @return mixed
  4323. * @static
  4324. */
  4325. public static function requireOnce($file){
  4326. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  4327. }
  4328. /**
  4329. * Write the contents of a file.
  4330. *
  4331. * @param string $path
  4332. * @param string $contents
  4333. * @param bool $lock
  4334. * @return int
  4335. * @static
  4336. */
  4337. public static function put($path, $contents, $lock = false){
  4338. return \Illuminate\Filesystem\Filesystem::put($path, $contents, $lock);
  4339. }
  4340. /**
  4341. * Prepend to a file.
  4342. *
  4343. * @param string $path
  4344. * @param string $data
  4345. * @return int
  4346. * @static
  4347. */
  4348. public static function prepend($path, $data){
  4349. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  4350. }
  4351. /**
  4352. * Append to a file.
  4353. *
  4354. * @param string $path
  4355. * @param string $data
  4356. * @return int
  4357. * @static
  4358. */
  4359. public static function append($path, $data){
  4360. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  4361. }
  4362. /**
  4363. * Delete the file at a given path.
  4364. *
  4365. * @param string|array $paths
  4366. * @return bool
  4367. * @static
  4368. */
  4369. public static function delete($paths){
  4370. return \Illuminate\Filesystem\Filesystem::delete($paths);
  4371. }
  4372. /**
  4373. * Move a file to a new location.
  4374. *
  4375. * @param string $path
  4376. * @param string $target
  4377. * @return bool
  4378. * @static
  4379. */
  4380. public static function move($path, $target){
  4381. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  4382. }
  4383. /**
  4384. * Copy a file to a new location.
  4385. *
  4386. * @param string $path
  4387. * @param string $target
  4388. * @return bool
  4389. * @static
  4390. */
  4391. public static function copy($path, $target){
  4392. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  4393. }
  4394. /**
  4395. * Extract the file name from a file path.
  4396. *
  4397. * @param string $path
  4398. * @return string
  4399. * @static
  4400. */
  4401. public static function name($path){
  4402. return \Illuminate\Filesystem\Filesystem::name($path);
  4403. }
  4404. /**
  4405. * Extract the file extension from a file path.
  4406. *
  4407. * @param string $path
  4408. * @return string
  4409. * @static
  4410. */
  4411. public static function extension($path){
  4412. return \Illuminate\Filesystem\Filesystem::extension($path);
  4413. }
  4414. /**
  4415. * Get the file type of a given file.
  4416. *
  4417. * @param string $path
  4418. * @return string
  4419. * @static
  4420. */
  4421. public static function type($path){
  4422. return \Illuminate\Filesystem\Filesystem::type($path);
  4423. }
  4424. /**
  4425. * Get the mime-type of a given file.
  4426. *
  4427. * @param string $path
  4428. * @return string|false
  4429. * @static
  4430. */
  4431. public static function mimeType($path){
  4432. return \Illuminate\Filesystem\Filesystem::mimeType($path);
  4433. }
  4434. /**
  4435. * Get the file size of a given file.
  4436. *
  4437. * @param string $path
  4438. * @return int
  4439. * @static
  4440. */
  4441. public static function size($path){
  4442. return \Illuminate\Filesystem\Filesystem::size($path);
  4443. }
  4444. /**
  4445. * Get the file's last modification time.
  4446. *
  4447. * @param string $path
  4448. * @return int
  4449. * @static
  4450. */
  4451. public static function lastModified($path){
  4452. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  4453. }
  4454. /**
  4455. * Determine if the given path is a directory.
  4456. *
  4457. * @param string $directory
  4458. * @return bool
  4459. * @static
  4460. */
  4461. public static function isDirectory($directory){
  4462. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  4463. }
  4464. /**
  4465. * Determine if the given path is writable.
  4466. *
  4467. * @param string $path
  4468. * @return bool
  4469. * @static
  4470. */
  4471. public static function isWritable($path){
  4472. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  4473. }
  4474. /**
  4475. * Determine if the given path is a file.
  4476. *
  4477. * @param string $file
  4478. * @return bool
  4479. * @static
  4480. */
  4481. public static function isFile($file){
  4482. return \Illuminate\Filesystem\Filesystem::isFile($file);
  4483. }
  4484. /**
  4485. * Find path names matching a given pattern.
  4486. *
  4487. * @param string $pattern
  4488. * @param int $flags
  4489. * @return array
  4490. * @static
  4491. */
  4492. public static function glob($pattern, $flags = 0){
  4493. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  4494. }
  4495. /**
  4496. * Get an array of all files in a directory.
  4497. *
  4498. * @param string $directory
  4499. * @return array
  4500. * @static
  4501. */
  4502. public static function files($directory){
  4503. return \Illuminate\Filesystem\Filesystem::files($directory);
  4504. }
  4505. /**
  4506. * Get all of the files from the given directory (recursive).
  4507. *
  4508. * @param string $directory
  4509. * @return array
  4510. * @static
  4511. */
  4512. public static function allFiles($directory){
  4513. return \Illuminate\Filesystem\Filesystem::allFiles($directory);
  4514. }
  4515. /**
  4516. * Get all of the directories within a given directory.
  4517. *
  4518. * @param string $directory
  4519. * @return array
  4520. * @static
  4521. */
  4522. public static function directories($directory){
  4523. return \Illuminate\Filesystem\Filesystem::directories($directory);
  4524. }
  4525. /**
  4526. * Create a directory.
  4527. *
  4528. * @param string $path
  4529. * @param int $mode
  4530. * @param bool $recursive
  4531. * @param bool $force
  4532. * @return bool
  4533. * @static
  4534. */
  4535. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false){
  4536. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  4537. }
  4538. /**
  4539. * Copy a directory from one location to another.
  4540. *
  4541. * @param string $directory
  4542. * @param string $destination
  4543. * @param int $options
  4544. * @return bool
  4545. * @static
  4546. */
  4547. public static function copyDirectory($directory, $destination, $options = null){
  4548. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  4549. }
  4550. /**
  4551. * Recursively delete a directory.
  4552. *
  4553. * The directory itself may be optionally preserved.
  4554. *
  4555. * @param string $directory
  4556. * @param bool $preserve
  4557. * @return bool
  4558. * @static
  4559. */
  4560. public static function deleteDirectory($directory, $preserve = false){
  4561. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  4562. }
  4563. /**
  4564. * Empty the specified directory of all files and folders.
  4565. *
  4566. * @param string $directory
  4567. * @return bool
  4568. * @static
  4569. */
  4570. public static function cleanDirectory($directory){
  4571. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  4572. }
  4573. /**
  4574. * Register a custom macro.
  4575. *
  4576. * @param string $name
  4577. * @param callable $macro
  4578. * @return void
  4579. * @static
  4580. */
  4581. public static function macro($name, $macro){
  4582. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  4583. }
  4584. /**
  4585. * Checks if macro is registered.
  4586. *
  4587. * @param string $name
  4588. * @return bool
  4589. * @static
  4590. */
  4591. public static function hasMacro($name){
  4592. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  4593. }
  4594. }
  4595. class Hash extends \Illuminate\Support\Facades\Hash{
  4596. /**
  4597. * Hash the given value.
  4598. *
  4599. * @param string $value
  4600. * @param array $options
  4601. * @return string
  4602. * @throws \RuntimeException
  4603. * @static
  4604. */
  4605. public static function make($value, $options = array()){
  4606. return \Illuminate\Hashing\BcryptHasher::make($value, $options);
  4607. }
  4608. /**
  4609. * Check the given plain value against a hash.
  4610. *
  4611. * @param string $value
  4612. * @param string $hashedValue
  4613. * @param array $options
  4614. * @return bool
  4615. * @static
  4616. */
  4617. public static function check($value, $hashedValue, $options = array()){
  4618. return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  4619. }
  4620. /**
  4621. * Check if the given hash has been hashed using the given options.
  4622. *
  4623. * @param string $hashedValue
  4624. * @param array $options
  4625. * @return bool
  4626. * @static
  4627. */
  4628. public static function needsRehash($hashedValue, $options = array()){
  4629. return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  4630. }
  4631. /**
  4632. * Set the default password work factor.
  4633. *
  4634. * @param int $rounds
  4635. * @return $this
  4636. * @static
  4637. */
  4638. public static function setRounds($rounds){
  4639. return \Illuminate\Hashing\BcryptHasher::setRounds($rounds);
  4640. }
  4641. }
  4642. class Input extends \Illuminate\Support\Facades\Input{
  4643. /**
  4644. * Create a new Illuminate HTTP request from server variables.
  4645. *
  4646. * @return static
  4647. * @static
  4648. */
  4649. public static function capture(){
  4650. return \Illuminate\Http\Request::capture();
  4651. }
  4652. /**
  4653. * Return the Request instance.
  4654. *
  4655. * @return $this
  4656. * @static
  4657. */
  4658. public static function instance(){
  4659. return \Illuminate\Http\Request::instance();
  4660. }
  4661. /**
  4662. * Get the request method.
  4663. *
  4664. * @return string
  4665. * @static
  4666. */
  4667. public static function method(){
  4668. return \Illuminate\Http\Request::method();
  4669. }
  4670. /**
  4671. * Get the root URL for the application.
  4672. *
  4673. * @return string
  4674. * @static
  4675. */
  4676. public static function root(){
  4677. return \Illuminate\Http\Request::root();
  4678. }
  4679. /**
  4680. * Get the URL (no query string) for the request.
  4681. *
  4682. * @return string
  4683. * @static
  4684. */
  4685. public static function url(){
  4686. return \Illuminate\Http\Request::url();
  4687. }
  4688. /**
  4689. * Get the full URL for the request.
  4690. *
  4691. * @return string
  4692. * @static
  4693. */
  4694. public static function fullUrl(){
  4695. return \Illuminate\Http\Request::fullUrl();
  4696. }
  4697. /**
  4698. * Get the current path info for the request.
  4699. *
  4700. * @return string
  4701. * @static
  4702. */
  4703. public static function path(){
  4704. return \Illuminate\Http\Request::path();
  4705. }
  4706. /**
  4707. * Get the current encoded path info for the request.
  4708. *
  4709. * @return string
  4710. * @static
  4711. */
  4712. public static function decodedPath(){
  4713. return \Illuminate\Http\Request::decodedPath();
  4714. }
  4715. /**
  4716. * Get a segment from the URI (1 based index).
  4717. *
  4718. * @param int $index
  4719. * @param mixed $default
  4720. * @return string
  4721. * @static
  4722. */
  4723. public static function segment($index, $default = null){
  4724. return \Illuminate\Http\Request::segment($index, $default);
  4725. }
  4726. /**
  4727. * Get all of the segments for the request path.
  4728. *
  4729. * @return array
  4730. * @static
  4731. */
  4732. public static function segments(){
  4733. return \Illuminate\Http\Request::segments();
  4734. }
  4735. /**
  4736. * Determine if the current request URI matches a pattern.
  4737. *
  4738. * @param mixed string
  4739. * @return bool
  4740. * @static
  4741. */
  4742. public static function is(){
  4743. return \Illuminate\Http\Request::is();
  4744. }
  4745. /**
  4746. * Determine if the request is the result of an AJAX call.
  4747. *
  4748. * @return bool
  4749. * @static
  4750. */
  4751. public static function ajax(){
  4752. return \Illuminate\Http\Request::ajax();
  4753. }
  4754. /**
  4755. * Determine if the request is the result of an PJAX call.
  4756. *
  4757. * @return bool
  4758. * @static
  4759. */
  4760. public static function pjax(){
  4761. return \Illuminate\Http\Request::pjax();
  4762. }
  4763. /**
  4764. * Determine if the request is over HTTPS.
  4765. *
  4766. * @return bool
  4767. * @static
  4768. */
  4769. public static function secure(){
  4770. return \Illuminate\Http\Request::secure();
  4771. }
  4772. /**
  4773. * Returns the client IP address.
  4774. *
  4775. * @return string
  4776. * @static
  4777. */
  4778. public static function ip(){
  4779. return \Illuminate\Http\Request::ip();
  4780. }
  4781. /**
  4782. * Returns the client IP addresses.
  4783. *
  4784. * @return array
  4785. * @static
  4786. */
  4787. public static function ips(){
  4788. return \Illuminate\Http\Request::ips();
  4789. }
  4790. /**
  4791. * Determine if the request contains a given input item key.
  4792. *
  4793. * @param string|array $key
  4794. * @return bool
  4795. * @static
  4796. */
  4797. public static function exists($key){
  4798. return \Illuminate\Http\Request::exists($key);
  4799. }
  4800. /**
  4801. * Determine if the request contains a non-empty value for an input item.
  4802. *
  4803. * @param string|array $key
  4804. * @return bool
  4805. * @static
  4806. */
  4807. public static function has($key){
  4808. return \Illuminate\Http\Request::has($key);
  4809. }
  4810. /**
  4811. * Get all of the input and files for the request.
  4812. *
  4813. * @return array
  4814. * @static
  4815. */
  4816. public static function all(){
  4817. return \Illuminate\Http\Request::all();
  4818. }
  4819. /**
  4820. * Retrieve an input item from the request.
  4821. *
  4822. * @param string $key
  4823. * @param mixed $default
  4824. * @return string|array
  4825. * @static
  4826. */
  4827. public static function input($key = null, $default = null){
  4828. return \Illuminate\Http\Request::input($key, $default);
  4829. }
  4830. /**
  4831. * Get a subset of the items from the input data.
  4832. *
  4833. * @param array $keys
  4834. * @return array
  4835. * @static
  4836. */
  4837. public static function only($keys){
  4838. return \Illuminate\Http\Request::only($keys);
  4839. }
  4840. /**
  4841. * Get all of the input except for a specified array of items.
  4842. *
  4843. * @param array $keys
  4844. * @return array
  4845. * @static
  4846. */
  4847. public static function except($keys){
  4848. return \Illuminate\Http\Request::except($keys);
  4849. }
  4850. /**
  4851. * Retrieve a query string item from the request.
  4852. *
  4853. * @param string $key
  4854. * @param mixed $default
  4855. * @return string
  4856. * @static
  4857. */
  4858. public static function query($key = null, $default = null){
  4859. return \Illuminate\Http\Request::query($key, $default);
  4860. }
  4861. /**
  4862. * Determine if a cookie is set on the request.
  4863. *
  4864. * @param string $key
  4865. * @return bool
  4866. * @static
  4867. */
  4868. public static function hasCookie($key){
  4869. return \Illuminate\Http\Request::hasCookie($key);
  4870. }
  4871. /**
  4872. * Retrieve a cookie from the request.
  4873. *
  4874. * @param string $key
  4875. * @param mixed $default
  4876. * @return string
  4877. * @static
  4878. */
  4879. public static function cookie($key = null, $default = null){
  4880. return \Illuminate\Http\Request::cookie($key, $default);
  4881. }
  4882. /**
  4883. * Retrieve a file from the request.
  4884. *
  4885. * @param string $key
  4886. * @param mixed $default
  4887. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  4888. * @static
  4889. */
  4890. public static function file($key = null, $default = null){
  4891. return \Illuminate\Http\Request::file($key, $default);
  4892. }
  4893. /**
  4894. * Determine if the uploaded data contains a file.
  4895. *
  4896. * @param string $key
  4897. * @return bool
  4898. * @static
  4899. */
  4900. public static function hasFile($key){
  4901. return \Illuminate\Http\Request::hasFile($key);
  4902. }
  4903. /**
  4904. * Retrieve a header from the request.
  4905. *
  4906. * @param string $key
  4907. * @param mixed $default
  4908. * @return string
  4909. * @static
  4910. */
  4911. public static function header($key = null, $default = null){
  4912. return \Illuminate\Http\Request::header($key, $default);
  4913. }
  4914. /**
  4915. * Retrieve a server variable from the request.
  4916. *
  4917. * @param string $key
  4918. * @param mixed $default
  4919. * @return string
  4920. * @static
  4921. */
  4922. public static function server($key = null, $default = null){
  4923. return \Illuminate\Http\Request::server($key, $default);
  4924. }
  4925. /**
  4926. * Retrieve an old input item.
  4927. *
  4928. * @param string $key
  4929. * @param mixed $default
  4930. * @return mixed
  4931. * @static
  4932. */
  4933. public static function old($key = null, $default = null){
  4934. return \Illuminate\Http\Request::old($key, $default);
  4935. }
  4936. /**
  4937. * Flash the input for the current request to the session.
  4938. *
  4939. * @param string $filter
  4940. * @param array $keys
  4941. * @return void
  4942. * @static
  4943. */
  4944. public static function flash($filter = null, $keys = array()){
  4945. \Illuminate\Http\Request::flash($filter, $keys);
  4946. }
  4947. /**
  4948. * Flash only some of the input to the session.
  4949. *
  4950. * @param mixed string
  4951. * @return void
  4952. * @static
  4953. */
  4954. public static function flashOnly($keys){
  4955. \Illuminate\Http\Request::flashOnly($keys);
  4956. }
  4957. /**
  4958. * Flash only some of the input to the session.
  4959. *
  4960. * @param mixed string
  4961. * @return void
  4962. * @static
  4963. */
  4964. public static function flashExcept($keys){
  4965. \Illuminate\Http\Request::flashExcept($keys);
  4966. }
  4967. /**
  4968. * Flush all of the old input from the session.
  4969. *
  4970. * @return void
  4971. * @static
  4972. */
  4973. public static function flush(){
  4974. \Illuminate\Http\Request::flush();
  4975. }
  4976. /**
  4977. * Merge new input into the current request's input array.
  4978. *
  4979. * @param array $input
  4980. * @return void
  4981. * @static
  4982. */
  4983. public static function merge($input){
  4984. \Illuminate\Http\Request::merge($input);
  4985. }
  4986. /**
  4987. * Replace the input for the current request.
  4988. *
  4989. * @param array $input
  4990. * @return void
  4991. * @static
  4992. */
  4993. public static function replace($input){
  4994. \Illuminate\Http\Request::replace($input);
  4995. }
  4996. /**
  4997. * Get the JSON payload for the request.
  4998. *
  4999. * @param string $key
  5000. * @param mixed $default
  5001. * @return mixed
  5002. * @static
  5003. */
  5004. public static function json($key = null, $default = null){
  5005. return \Illuminate\Http\Request::json($key, $default);
  5006. }
  5007. /**
  5008. * Determine if the request is sending JSON.
  5009. *
  5010. * @return bool
  5011. * @static
  5012. */
  5013. public static function isJson(){
  5014. return \Illuminate\Http\Request::isJson();
  5015. }
  5016. /**
  5017. * Determine if the current request is asking for JSON in return.
  5018. *
  5019. * @return bool
  5020. * @static
  5021. */
  5022. public static function wantsJson(){
  5023. return \Illuminate\Http\Request::wantsJson();
  5024. }
  5025. /**
  5026. * Get the data format expected in the response.
  5027. *
  5028. * @param string $default
  5029. * @return string
  5030. * @static
  5031. */
  5032. public static function format($default = 'html'){
  5033. return \Illuminate\Http\Request::format($default);
  5034. }
  5035. /**
  5036. * Create an Illuminate request from a Symfony instance.
  5037. *
  5038. * @param \Symfony\Component\HttpFoundation\Request $request
  5039. * @return \Illuminate\Http\Request
  5040. * @static
  5041. */
  5042. public static function createFromBase($request){
  5043. return \Illuminate\Http\Request::createFromBase($request);
  5044. }
  5045. /**
  5046. * Clones a request and overrides some of its parameters.
  5047. *
  5048. * @param array $query The GET parameters
  5049. * @param array $request The POST parameters
  5050. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  5051. * @param array $cookies The COOKIE parameters
  5052. * @param array $files The FILES parameters
  5053. * @param array $server The SERVER parameters
  5054. * @return \Symfony\Component\HttpFoundation\Request The duplicated request
  5055. * @api
  5056. * @static
  5057. */
  5058. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  5059. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  5060. }
  5061. /**
  5062. * Get the session associated with the request.
  5063. *
  5064. * @return \Illuminate\Session\Store
  5065. * @throws \RuntimeException
  5066. * @static
  5067. */
  5068. public static function session(){
  5069. return \Illuminate\Http\Request::session();
  5070. }
  5071. /**
  5072. * Get the user making the request.
  5073. *
  5074. * @return mixed
  5075. * @static
  5076. */
  5077. public static function user(){
  5078. return \Illuminate\Http\Request::user();
  5079. }
  5080. /**
  5081. * Get the route handling the request.
  5082. *
  5083. * @return \Illuminate\Routing\Route|null
  5084. * @static
  5085. */
  5086. public static function route(){
  5087. return \Illuminate\Http\Request::route();
  5088. }
  5089. /**
  5090. * Get the user resolver callback.
  5091. *
  5092. * @return \Closure
  5093. * @static
  5094. */
  5095. public static function getUserResolver(){
  5096. return \Illuminate\Http\Request::getUserResolver();
  5097. }
  5098. /**
  5099. * Set the user resolver callback.
  5100. *
  5101. * @param \Closure $callback
  5102. * @return $this
  5103. * @static
  5104. */
  5105. public static function setUserResolver($callback){
  5106. return \Illuminate\Http\Request::setUserResolver($callback);
  5107. }
  5108. /**
  5109. * Get the route resolver callback.
  5110. *
  5111. * @return \Closure
  5112. * @static
  5113. */
  5114. public static function getRouteResolver(){
  5115. return \Illuminate\Http\Request::getRouteResolver();
  5116. }
  5117. /**
  5118. * Set the route resolver callback.
  5119. *
  5120. * @param \Closure $callback
  5121. * @return $this
  5122. * @static
  5123. */
  5124. public static function setRouteResolver($callback){
  5125. return \Illuminate\Http\Request::setRouteResolver($callback);
  5126. }
  5127. /**
  5128. * Determine if the given offset exists.
  5129. *
  5130. * @param string $offset
  5131. * @return bool
  5132. * @static
  5133. */
  5134. public static function offsetExists($offset){
  5135. return \Illuminate\Http\Request::offsetExists($offset);
  5136. }
  5137. /**
  5138. * Get the value at the given offset.
  5139. *
  5140. * @param string $offset
  5141. * @return mixed
  5142. * @static
  5143. */
  5144. public static function offsetGet($offset){
  5145. return \Illuminate\Http\Request::offsetGet($offset);
  5146. }
  5147. /**
  5148. * Set the value at the given offset.
  5149. *
  5150. * @param string $offset
  5151. * @param mixed $value
  5152. * @return void
  5153. * @static
  5154. */
  5155. public static function offsetSet($offset, $value){
  5156. \Illuminate\Http\Request::offsetSet($offset, $value);
  5157. }
  5158. /**
  5159. * Remove the value at the given offset.
  5160. *
  5161. * @param string $offset
  5162. * @return void
  5163. * @static
  5164. */
  5165. public static function offsetUnset($offset){
  5166. \Illuminate\Http\Request::offsetUnset($offset);
  5167. }
  5168. /**
  5169. * Sets the parameters for this request.
  5170. *
  5171. * This method also re-initializes all properties.
  5172. *
  5173. * @param array $query The GET parameters
  5174. * @param array $request The POST parameters
  5175. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  5176. * @param array $cookies The COOKIE parameters
  5177. * @param array $files The FILES parameters
  5178. * @param array $server The SERVER parameters
  5179. * @param string $content The raw body data
  5180. * @api
  5181. * @static
  5182. */
  5183. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  5184. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5185. return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  5186. }
  5187. /**
  5188. * Creates a new request with values from PHP's super globals.
  5189. *
  5190. * @return \Symfony\Component\HttpFoundation\Request A new request
  5191. * @api
  5192. * @static
  5193. */
  5194. public static function createFromGlobals(){
  5195. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5196. return \Illuminate\Http\Request::createFromGlobals();
  5197. }
  5198. /**
  5199. * Creates a Request based on a given URI and configuration.
  5200. *
  5201. * The information contained in the URI always take precedence
  5202. * over the other information (server and parameters).
  5203. *
  5204. * @param string $uri The URI
  5205. * @param string $method The HTTP method
  5206. * @param array $parameters The query (GET) or request (POST) parameters
  5207. * @param array $cookies The request cookies ($_COOKIE)
  5208. * @param array $files The request files ($_FILES)
  5209. * @param array $server The server parameters ($_SERVER)
  5210. * @param string $content The raw body data
  5211. * @return \Symfony\Component\HttpFoundation\Request A Request instance
  5212. * @api
  5213. * @static
  5214. */
  5215. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  5216. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5217. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  5218. }
  5219. /**
  5220. * Sets a callable able to create a Request instance.
  5221. *
  5222. * This is mainly useful when you need to override the Request class
  5223. * to keep BC with an existing system. It should not be used for any
  5224. * other purpose.
  5225. *
  5226. * @param callable|null $callable A PHP callable
  5227. * @static
  5228. */
  5229. public static function setFactory($callable){
  5230. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5231. return \Illuminate\Http\Request::setFactory($callable);
  5232. }
  5233. /**
  5234. * Overrides the PHP global variables according to this request instance.
  5235. *
  5236. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  5237. * $_FILES is never overridden, see rfc1867
  5238. *
  5239. * @api
  5240. * @static
  5241. */
  5242. public static function overrideGlobals(){
  5243. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5244. return \Illuminate\Http\Request::overrideGlobals();
  5245. }
  5246. /**
  5247. * Sets a list of trusted proxies.
  5248. *
  5249. * You should only list the reverse proxies that you manage directly.
  5250. *
  5251. * @param array $proxies A list of trusted proxies
  5252. * @api
  5253. * @static
  5254. */
  5255. public static function setTrustedProxies($proxies){
  5256. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5257. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  5258. }
  5259. /**
  5260. * Gets the list of trusted proxies.
  5261. *
  5262. * @return array An array of trusted proxies.
  5263. * @static
  5264. */
  5265. public static function getTrustedProxies(){
  5266. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5267. return \Illuminate\Http\Request::getTrustedProxies();
  5268. }
  5269. /**
  5270. * Sets a list of trusted host patterns.
  5271. *
  5272. * You should only list the hosts you manage using regexs.
  5273. *
  5274. * @param array $hostPatterns A list of trusted host patterns
  5275. * @static
  5276. */
  5277. public static function setTrustedHosts($hostPatterns){
  5278. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5279. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  5280. }
  5281. /**
  5282. * Gets the list of trusted host patterns.
  5283. *
  5284. * @return array An array of trusted host patterns.
  5285. * @static
  5286. */
  5287. public static function getTrustedHosts(){
  5288. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5289. return \Illuminate\Http\Request::getTrustedHosts();
  5290. }
  5291. /**
  5292. * Sets the name for trusted headers.
  5293. *
  5294. * The following header keys are supported:
  5295. *
  5296. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  5297. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  5298. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  5299. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  5300. *
  5301. * Setting an empty value allows to disable the trusted header for the given key.
  5302. *
  5303. * @param string $key The header key
  5304. * @param string $value The header name
  5305. * @throws \InvalidArgumentException
  5306. * @static
  5307. */
  5308. public static function setTrustedHeaderName($key, $value){
  5309. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5310. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  5311. }
  5312. /**
  5313. * Gets the trusted proxy header name.
  5314. *
  5315. * @param string $key The header key
  5316. * @return string The header name
  5317. * @throws \InvalidArgumentException
  5318. * @static
  5319. */
  5320. public static function getTrustedHeaderName($key){
  5321. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5322. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  5323. }
  5324. /**
  5325. * Normalizes a query string.
  5326. *
  5327. * It builds a normalized query string, where keys/value pairs are alphabetized,
  5328. * have consistent escaping and unneeded delimiters are removed.
  5329. *
  5330. * @param string $qs Query string
  5331. * @return string A normalized query string for the Request
  5332. * @static
  5333. */
  5334. public static function normalizeQueryString($qs){
  5335. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5336. return \Illuminate\Http\Request::normalizeQueryString($qs);
  5337. }
  5338. /**
  5339. * Enables support for the _method request parameter to determine the intended HTTP method.
  5340. *
  5341. * Be warned that enabling this feature might lead to CSRF issues in your code.
  5342. * Check that you are using CSRF tokens when required.
  5343. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  5344. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  5345. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  5346. *
  5347. * The HTTP method can only be overridden when the real HTTP method is POST.
  5348. *
  5349. * @static
  5350. */
  5351. public static function enableHttpMethodParameterOverride(){
  5352. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5353. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  5354. }
  5355. /**
  5356. * Checks whether support for the _method request parameter is enabled.
  5357. *
  5358. * @return bool True when the _method request parameter is enabled, false otherwise
  5359. * @static
  5360. */
  5361. public static function getHttpMethodParameterOverride(){
  5362. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5363. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  5364. }
  5365. /**
  5366. * Gets a "parameter" value.
  5367. *
  5368. * This method is mainly useful for libraries that want to provide some flexibility.
  5369. *
  5370. * Order of precedence: GET, PATH, POST
  5371. *
  5372. * Avoid using this method in controllers:
  5373. *
  5374. * * slow
  5375. * * prefer to get from a "named" source
  5376. *
  5377. * It is better to explicitly get request parameters from the appropriate
  5378. * public property instead (query, attributes, request).
  5379. *
  5380. * @param string $key the key
  5381. * @param mixed $default the default value
  5382. * @param bool $deep is parameter deep in multidimensional array
  5383. * @return mixed
  5384. * @static
  5385. */
  5386. public static function get($key, $default = null, $deep = false){
  5387. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5388. return \Illuminate\Http\Request::get($key, $default, $deep);
  5389. }
  5390. /**
  5391. * Gets the Session.
  5392. *
  5393. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  5394. * @api
  5395. * @static
  5396. */
  5397. public static function getSession(){
  5398. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5399. return \Illuminate\Http\Request::getSession();
  5400. }
  5401. /**
  5402. * Whether the request contains a Session which was started in one of the
  5403. * previous requests.
  5404. *
  5405. * @return bool
  5406. * @api
  5407. * @static
  5408. */
  5409. public static function hasPreviousSession(){
  5410. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5411. return \Illuminate\Http\Request::hasPreviousSession();
  5412. }
  5413. /**
  5414. * Whether the request contains a Session object.
  5415. *
  5416. * This method does not give any information about the state of the session object,
  5417. * like whether the session is started or not. It is just a way to check if this Request
  5418. * is associated with a Session instance.
  5419. *
  5420. * @return bool true when the Request contains a Session object, false otherwise
  5421. * @api
  5422. * @static
  5423. */
  5424. public static function hasSession(){
  5425. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5426. return \Illuminate\Http\Request::hasSession();
  5427. }
  5428. /**
  5429. * Sets the Session.
  5430. *
  5431. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  5432. * @api
  5433. * @static
  5434. */
  5435. public static function setSession($session){
  5436. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5437. return \Illuminate\Http\Request::setSession($session);
  5438. }
  5439. /**
  5440. * Returns the client IP addresses.
  5441. *
  5442. * In the returned array the most trusted IP address is first, and the
  5443. * least trusted one last. The "real" client IP address is the last one,
  5444. * but this is also the least trusted one. Trusted proxies are stripped.
  5445. *
  5446. * Use this method carefully; you should use getClientIp() instead.
  5447. *
  5448. * @return array The client IP addresses
  5449. * @see getClientIp()
  5450. * @static
  5451. */
  5452. public static function getClientIps(){
  5453. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5454. return \Illuminate\Http\Request::getClientIps();
  5455. }
  5456. /**
  5457. * Returns the client IP address.
  5458. *
  5459. * This method can read the client IP address from the "X-Forwarded-For" header
  5460. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  5461. * header value is a comma+space separated list of IP addresses, the left-most
  5462. * being the original client, and each successive proxy that passed the request
  5463. * adding the IP address where it received the request from.
  5464. *
  5465. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  5466. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  5467. * the "client-ip" key.
  5468. *
  5469. * @return string The client IP address
  5470. * @see getClientIps()
  5471. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  5472. * @api
  5473. * @static
  5474. */
  5475. public static function getClientIp(){
  5476. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5477. return \Illuminate\Http\Request::getClientIp();
  5478. }
  5479. /**
  5480. * Returns current script name.
  5481. *
  5482. * @return string
  5483. * @api
  5484. * @static
  5485. */
  5486. public static function getScriptName(){
  5487. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5488. return \Illuminate\Http\Request::getScriptName();
  5489. }
  5490. /**
  5491. * Returns the path being requested relative to the executed script.
  5492. *
  5493. * The path info always starts with a /.
  5494. *
  5495. * Suppose this request is instantiated from /mysite on localhost:
  5496. *
  5497. * * http://localhost/mysite returns an empty string
  5498. * * http://localhost/mysite/about returns '/about'
  5499. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  5500. * * http://localhost/mysite/about?var=1 returns '/about'
  5501. *
  5502. * @return string The raw path (i.e. not urldecoded)
  5503. * @api
  5504. * @static
  5505. */
  5506. public static function getPathInfo(){
  5507. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5508. return \Illuminate\Http\Request::getPathInfo();
  5509. }
  5510. /**
  5511. * Returns the root path from which this request is executed.
  5512. *
  5513. * Suppose that an index.php file instantiates this request object:
  5514. *
  5515. * * http://localhost/index.php returns an empty string
  5516. * * http://localhost/index.php/page returns an empty string
  5517. * * http://localhost/web/index.php returns '/web'
  5518. * * http://localhost/we%20b/index.php returns '/we%20b'
  5519. *
  5520. * @return string The raw path (i.e. not urldecoded)
  5521. * @api
  5522. * @static
  5523. */
  5524. public static function getBasePath(){
  5525. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5526. return \Illuminate\Http\Request::getBasePath();
  5527. }
  5528. /**
  5529. * Returns the root URL from which this request is executed.
  5530. *
  5531. * The base URL never ends with a /.
  5532. *
  5533. * This is similar to getBasePath(), except that it also includes the
  5534. * script filename (e.g. index.php) if one exists.
  5535. *
  5536. * @return string The raw URL (i.e. not urldecoded)
  5537. * @api
  5538. * @static
  5539. */
  5540. public static function getBaseUrl(){
  5541. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5542. return \Illuminate\Http\Request::getBaseUrl();
  5543. }
  5544. /**
  5545. * Gets the request's scheme.
  5546. *
  5547. * @return string
  5548. * @api
  5549. * @static
  5550. */
  5551. public static function getScheme(){
  5552. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5553. return \Illuminate\Http\Request::getScheme();
  5554. }
  5555. /**
  5556. * Returns the port on which the request is made.
  5557. *
  5558. * This method can read the client port from the "X-Forwarded-Port" header
  5559. * when trusted proxies were set via "setTrustedProxies()".
  5560. *
  5561. * The "X-Forwarded-Port" header must contain the client port.
  5562. *
  5563. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  5564. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  5565. *
  5566. * @return string
  5567. * @api
  5568. * @static
  5569. */
  5570. public static function getPort(){
  5571. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5572. return \Illuminate\Http\Request::getPort();
  5573. }
  5574. /**
  5575. * Returns the user.
  5576. *
  5577. * @return string|null
  5578. * @static
  5579. */
  5580. public static function getUser(){
  5581. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5582. return \Illuminate\Http\Request::getUser();
  5583. }
  5584. /**
  5585. * Returns the password.
  5586. *
  5587. * @return string|null
  5588. * @static
  5589. */
  5590. public static function getPassword(){
  5591. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5592. return \Illuminate\Http\Request::getPassword();
  5593. }
  5594. /**
  5595. * Gets the user info.
  5596. *
  5597. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  5598. * @static
  5599. */
  5600. public static function getUserInfo(){
  5601. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5602. return \Illuminate\Http\Request::getUserInfo();
  5603. }
  5604. /**
  5605. * Returns the HTTP host being requested.
  5606. *
  5607. * The port name will be appended to the host if it's non-standard.
  5608. *
  5609. * @return string
  5610. * @api
  5611. * @static
  5612. */
  5613. public static function getHttpHost(){
  5614. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5615. return \Illuminate\Http\Request::getHttpHost();
  5616. }
  5617. /**
  5618. * Returns the requested URI (path and query string).
  5619. *
  5620. * @return string The raw URI (i.e. not URI decoded)
  5621. * @api
  5622. * @static
  5623. */
  5624. public static function getRequestUri(){
  5625. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5626. return \Illuminate\Http\Request::getRequestUri();
  5627. }
  5628. /**
  5629. * Gets the scheme and HTTP host.
  5630. *
  5631. * If the URL was called with basic authentication, the user
  5632. * and the password are not added to the generated string.
  5633. *
  5634. * @return string The scheme and HTTP host
  5635. * @static
  5636. */
  5637. public static function getSchemeAndHttpHost(){
  5638. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5639. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  5640. }
  5641. /**
  5642. * Generates a normalized URI (URL) for the Request.
  5643. *
  5644. * @return string A normalized URI (URL) for the Request
  5645. * @see getQueryString()
  5646. * @api
  5647. * @static
  5648. */
  5649. public static function getUri(){
  5650. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5651. return \Illuminate\Http\Request::getUri();
  5652. }
  5653. /**
  5654. * Generates a normalized URI for the given path.
  5655. *
  5656. * @param string $path A path to use instead of the current one
  5657. * @return string The normalized URI for the path
  5658. * @api
  5659. * @static
  5660. */
  5661. public static function getUriForPath($path){
  5662. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5663. return \Illuminate\Http\Request::getUriForPath($path);
  5664. }
  5665. /**
  5666. * Generates the normalized query string for the Request.
  5667. *
  5668. * It builds a normalized query string, where keys/value pairs are alphabetized
  5669. * and have consistent escaping.
  5670. *
  5671. * @return string|null A normalized query string for the Request
  5672. * @api
  5673. * @static
  5674. */
  5675. public static function getQueryString(){
  5676. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5677. return \Illuminate\Http\Request::getQueryString();
  5678. }
  5679. /**
  5680. * Checks whether the request is secure or not.
  5681. *
  5682. * This method can read the client port from the "X-Forwarded-Proto" header
  5683. * when trusted proxies were set via "setTrustedProxies()".
  5684. *
  5685. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  5686. *
  5687. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  5688. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  5689. * the "client-proto" key.
  5690. *
  5691. * @return bool
  5692. * @api
  5693. * @static
  5694. */
  5695. public static function isSecure(){
  5696. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5697. return \Illuminate\Http\Request::isSecure();
  5698. }
  5699. /**
  5700. * Returns the host name.
  5701. *
  5702. * This method can read the client port from the "X-Forwarded-Host" header
  5703. * when trusted proxies were set via "setTrustedProxies()".
  5704. *
  5705. * The "X-Forwarded-Host" header must contain the client host name.
  5706. *
  5707. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  5708. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  5709. *
  5710. * @return string
  5711. * @throws \UnexpectedValueException when the host name is invalid
  5712. * @api
  5713. * @static
  5714. */
  5715. public static function getHost(){
  5716. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5717. return \Illuminate\Http\Request::getHost();
  5718. }
  5719. /**
  5720. * Sets the request method.
  5721. *
  5722. * @param string $method
  5723. * @api
  5724. * @static
  5725. */
  5726. public static function setMethod($method){
  5727. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5728. return \Illuminate\Http\Request::setMethod($method);
  5729. }
  5730. /**
  5731. * Gets the request "intended" method.
  5732. *
  5733. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  5734. * then it is used to determine the "real" intended HTTP method.
  5735. *
  5736. * The _method request parameter can also be used to determine the HTTP method,
  5737. * but only if enableHttpMethodParameterOverride() has been called.
  5738. *
  5739. * The method is always an uppercased string.
  5740. *
  5741. * @return string The request method
  5742. * @api
  5743. * @see getRealMethod()
  5744. * @static
  5745. */
  5746. public static function getMethod(){
  5747. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5748. return \Illuminate\Http\Request::getMethod();
  5749. }
  5750. /**
  5751. * Gets the "real" request method.
  5752. *
  5753. * @return string The request method
  5754. * @see getMethod()
  5755. * @static
  5756. */
  5757. public static function getRealMethod(){
  5758. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5759. return \Illuminate\Http\Request::getRealMethod();
  5760. }
  5761. /**
  5762. * Gets the mime type associated with the format.
  5763. *
  5764. * @param string $format The format
  5765. * @return string The associated mime type (null if not found)
  5766. * @api
  5767. * @static
  5768. */
  5769. public static function getMimeType($format){
  5770. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5771. return \Illuminate\Http\Request::getMimeType($format);
  5772. }
  5773. /**
  5774. * Gets the format associated with the mime type.
  5775. *
  5776. * @param string $mimeType The associated mime type
  5777. * @return string|null The format (null if not found)
  5778. * @api
  5779. * @static
  5780. */
  5781. public static function getFormat($mimeType){
  5782. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5783. return \Illuminate\Http\Request::getFormat($mimeType);
  5784. }
  5785. /**
  5786. * Associates a format with mime types.
  5787. *
  5788. * @param string $format The format
  5789. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  5790. * @api
  5791. * @static
  5792. */
  5793. public static function setFormat($format, $mimeTypes){
  5794. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5795. return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  5796. }
  5797. /**
  5798. * Gets the request format.
  5799. *
  5800. * Here is the process to determine the format:
  5801. *
  5802. * * format defined by the user (with setRequestFormat())
  5803. * * _format request parameter
  5804. * * $default
  5805. *
  5806. * @param string $default The default format
  5807. * @return string The request format
  5808. * @api
  5809. * @static
  5810. */
  5811. public static function getRequestFormat($default = 'html'){
  5812. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5813. return \Illuminate\Http\Request::getRequestFormat($default);
  5814. }
  5815. /**
  5816. * Sets the request format.
  5817. *
  5818. * @param string $format The request format.
  5819. * @api
  5820. * @static
  5821. */
  5822. public static function setRequestFormat($format){
  5823. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5824. return \Illuminate\Http\Request::setRequestFormat($format);
  5825. }
  5826. /**
  5827. * Gets the format associated with the request.
  5828. *
  5829. * @return string|null The format (null if no content type is present)
  5830. * @api
  5831. * @static
  5832. */
  5833. public static function getContentType(){
  5834. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5835. return \Illuminate\Http\Request::getContentType();
  5836. }
  5837. /**
  5838. * Sets the default locale.
  5839. *
  5840. * @param string $locale
  5841. * @api
  5842. * @static
  5843. */
  5844. public static function setDefaultLocale($locale){
  5845. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5846. return \Illuminate\Http\Request::setDefaultLocale($locale);
  5847. }
  5848. /**
  5849. * Get the default locale.
  5850. *
  5851. * @return string
  5852. * @static
  5853. */
  5854. public static function getDefaultLocale(){
  5855. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5856. return \Illuminate\Http\Request::getDefaultLocale();
  5857. }
  5858. /**
  5859. * Sets the locale.
  5860. *
  5861. * @param string $locale
  5862. * @api
  5863. * @static
  5864. */
  5865. public static function setLocale($locale){
  5866. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5867. return \Illuminate\Http\Request::setLocale($locale);
  5868. }
  5869. /**
  5870. * Get the locale.
  5871. *
  5872. * @return string
  5873. * @static
  5874. */
  5875. public static function getLocale(){
  5876. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5877. return \Illuminate\Http\Request::getLocale();
  5878. }
  5879. /**
  5880. * Checks if the request method is of specified type.
  5881. *
  5882. * @param string $method Uppercase request method (GET, POST etc).
  5883. * @return bool
  5884. * @static
  5885. */
  5886. public static function isMethod($method){
  5887. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5888. return \Illuminate\Http\Request::isMethod($method);
  5889. }
  5890. /**
  5891. * Checks whether the method is safe or not.
  5892. *
  5893. * @return bool
  5894. * @api
  5895. * @static
  5896. */
  5897. public static function isMethodSafe(){
  5898. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5899. return \Illuminate\Http\Request::isMethodSafe();
  5900. }
  5901. /**
  5902. * Returns the request body content.
  5903. *
  5904. * @param bool $asResource If true, a resource will be returned
  5905. * @return string|resource The request body content or a resource to read the body stream.
  5906. * @throws \LogicException
  5907. * @static
  5908. */
  5909. public static function getContent($asResource = false){
  5910. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5911. return \Illuminate\Http\Request::getContent($asResource);
  5912. }
  5913. /**
  5914. * Gets the Etags.
  5915. *
  5916. * @return array The entity tags
  5917. * @static
  5918. */
  5919. public static function getETags(){
  5920. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5921. return \Illuminate\Http\Request::getETags();
  5922. }
  5923. /**
  5924. *
  5925. *
  5926. * @return bool
  5927. * @static
  5928. */
  5929. public static function isNoCache(){
  5930. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5931. return \Illuminate\Http\Request::isNoCache();
  5932. }
  5933. /**
  5934. * Returns the preferred language.
  5935. *
  5936. * @param array $locales An array of ordered available locales
  5937. * @return string|null The preferred locale
  5938. * @api
  5939. * @static
  5940. */
  5941. public static function getPreferredLanguage($locales = null){
  5942. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5943. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  5944. }
  5945. /**
  5946. * Gets a list of languages acceptable by the client browser.
  5947. *
  5948. * @return array Languages ordered in the user browser preferences
  5949. * @api
  5950. * @static
  5951. */
  5952. public static function getLanguages(){
  5953. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5954. return \Illuminate\Http\Request::getLanguages();
  5955. }
  5956. /**
  5957. * Gets a list of charsets acceptable by the client browser.
  5958. *
  5959. * @return array List of charsets in preferable order
  5960. * @api
  5961. * @static
  5962. */
  5963. public static function getCharsets(){
  5964. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5965. return \Illuminate\Http\Request::getCharsets();
  5966. }
  5967. /**
  5968. * Gets a list of encodings acceptable by the client browser.
  5969. *
  5970. * @return array List of encodings in preferable order
  5971. * @static
  5972. */
  5973. public static function getEncodings(){
  5974. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5975. return \Illuminate\Http\Request::getEncodings();
  5976. }
  5977. /**
  5978. * Gets a list of content types acceptable by the client browser.
  5979. *
  5980. * @return array List of content types in preferable order
  5981. * @api
  5982. * @static
  5983. */
  5984. public static function getAcceptableContentTypes(){
  5985. //Method inherited from \Symfony\Component\HttpFoundation\Request
  5986. return \Illuminate\Http\Request::getAcceptableContentTypes();
  5987. }
  5988. /**
  5989. * Returns true if the request is a XMLHttpRequest.
  5990. *
  5991. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  5992. * It is known to work with common JavaScript frameworks:
  5993. *
  5994. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  5995. * @return bool true if the request is an XMLHttpRequest, false otherwise
  5996. * @api
  5997. * @static
  5998. */
  5999. public static function isXmlHttpRequest(){
  6000. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6001. return \Illuminate\Http\Request::isXmlHttpRequest();
  6002. }
  6003. }
  6004. class Inspiring extends \Illuminate\Foundation\Inspiring{
  6005. }
  6006. class Lang extends \Illuminate\Support\Facades\Lang{
  6007. /**
  6008. * Determine if a translation exists.
  6009. *
  6010. * @param string $key
  6011. * @param string $locale
  6012. * @return bool
  6013. * @static
  6014. */
  6015. public static function has($key, $locale = null){
  6016. return \Illuminate\Translation\Translator::has($key, $locale);
  6017. }
  6018. /**
  6019. * Get the translation for the given key.
  6020. *
  6021. * @param string $key
  6022. * @param array $replace
  6023. * @param string $locale
  6024. * @return string
  6025. * @static
  6026. */
  6027. public static function get($key, $replace = array(), $locale = null){
  6028. return \Illuminate\Translation\Translator::get($key, $replace, $locale);
  6029. }
  6030. /**
  6031. * Get a translation according to an integer value.
  6032. *
  6033. * @param string $key
  6034. * @param int $number
  6035. * @param array $replace
  6036. * @param string $locale
  6037. * @return string
  6038. * @static
  6039. */
  6040. public static function choice($key, $number, $replace = array(), $locale = null){
  6041. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  6042. }
  6043. /**
  6044. * Get the translation for a given key.
  6045. *
  6046. * @param string $id
  6047. * @param array $parameters
  6048. * @param string $domain
  6049. * @param string $locale
  6050. * @return string
  6051. * @static
  6052. */
  6053. public static function trans($id, $parameters = array(), $domain = 'messages', $locale = null){
  6054. return \Illuminate\Translation\Translator::trans($id, $parameters, $domain, $locale);
  6055. }
  6056. /**
  6057. * Get a translation according to an integer value.
  6058. *
  6059. * @param string $id
  6060. * @param int $number
  6061. * @param array $parameters
  6062. * @param string $domain
  6063. * @param string $locale
  6064. * @return string
  6065. * @static
  6066. */
  6067. public static function transChoice($id, $number, $parameters = array(), $domain = 'messages', $locale = null){
  6068. return \Illuminate\Translation\Translator::transChoice($id, $number, $parameters, $domain, $locale);
  6069. }
  6070. /**
  6071. * Load the specified language group.
  6072. *
  6073. * @param string $namespace
  6074. * @param string $group
  6075. * @param string $locale
  6076. * @return void
  6077. * @static
  6078. */
  6079. public static function load($namespace, $group, $locale){
  6080. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  6081. }
  6082. /**
  6083. * Add a new namespace to the loader.
  6084. *
  6085. * @param string $namespace
  6086. * @param string $hint
  6087. * @return void
  6088. * @static
  6089. */
  6090. public static function addNamespace($namespace, $hint){
  6091. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  6092. }
  6093. /**
  6094. * Parse a key into namespace, group, and item.
  6095. *
  6096. * @param string $key
  6097. * @return array
  6098. * @static
  6099. */
  6100. public static function parseKey($key){
  6101. return \Illuminate\Translation\Translator::parseKey($key);
  6102. }
  6103. /**
  6104. * Get the message selector instance.
  6105. *
  6106. * @return \Symfony\Component\Translation\MessageSelector
  6107. * @static
  6108. */
  6109. public static function getSelector(){
  6110. return \Illuminate\Translation\Translator::getSelector();
  6111. }
  6112. /**
  6113. * Set the message selector instance.
  6114. *
  6115. * @param \Symfony\Component\Translation\MessageSelector $selector
  6116. * @return void
  6117. * @static
  6118. */
  6119. public static function setSelector($selector){
  6120. \Illuminate\Translation\Translator::setSelector($selector);
  6121. }
  6122. /**
  6123. * Get the language line loader implementation.
  6124. *
  6125. * @return \Illuminate\Translation\LoaderInterface
  6126. * @static
  6127. */
  6128. public static function getLoader(){
  6129. return \Illuminate\Translation\Translator::getLoader();
  6130. }
  6131. /**
  6132. * Get the default locale being used.
  6133. *
  6134. * @return string
  6135. * @static
  6136. */
  6137. public static function locale(){
  6138. return \Illuminate\Translation\Translator::locale();
  6139. }
  6140. /**
  6141. * Get the default locale being used.
  6142. *
  6143. * @return string
  6144. * @static
  6145. */
  6146. public static function getLocale(){
  6147. return \Illuminate\Translation\Translator::getLocale();
  6148. }
  6149. /**
  6150. * Set the default locale.
  6151. *
  6152. * @param string $locale
  6153. * @return void
  6154. * @static
  6155. */
  6156. public static function setLocale($locale){
  6157. \Illuminate\Translation\Translator::setLocale($locale);
  6158. }
  6159. /**
  6160. * Get the fallback locale being used.
  6161. *
  6162. * @return string
  6163. * @static
  6164. */
  6165. public static function getFallback(){
  6166. return \Illuminate\Translation\Translator::getFallback();
  6167. }
  6168. /**
  6169. * Set the fallback locale being used.
  6170. *
  6171. * @param string $fallback
  6172. * @return void
  6173. * @static
  6174. */
  6175. public static function setFallback($fallback){
  6176. \Illuminate\Translation\Translator::setFallback($fallback);
  6177. }
  6178. /**
  6179. * Set the parsed value of a key.
  6180. *
  6181. * @param string $key
  6182. * @param array $parsed
  6183. * @return void
  6184. * @static
  6185. */
  6186. public static function setParsedKey($key, $parsed){
  6187. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  6188. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  6189. }
  6190. }
  6191. class Log extends \Illuminate\Support\Facades\Log{
  6192. /**
  6193. * Adds a log record at the DEBUG level.
  6194. *
  6195. * @param string $message The log message
  6196. * @param array $context The log context
  6197. * @return Boolean Whether the record has been processed
  6198. * @static
  6199. */
  6200. public static function debug($message, $context = array()){
  6201. return \Monolog\Logger::debug($message, $context);
  6202. }
  6203. /**
  6204. * Adds a log record at the INFO level.
  6205. *
  6206. * @param string $message The log message
  6207. * @param array $context The log context
  6208. * @return Boolean Whether the record has been processed
  6209. * @static
  6210. */
  6211. public static function info($message, $context = array()){
  6212. return \Monolog\Logger::info($message, $context);
  6213. }
  6214. /**
  6215. * Adds a log record at the NOTICE level.
  6216. *
  6217. * @param string $message The log message
  6218. * @param array $context The log context
  6219. * @return Boolean Whether the record has been processed
  6220. * @static
  6221. */
  6222. public static function notice($message, $context = array()){
  6223. return \Monolog\Logger::notice($message, $context);
  6224. }
  6225. /**
  6226. * Adds a log record at the WARNING level.
  6227. *
  6228. * @param string $message The log message
  6229. * @param array $context The log context
  6230. * @return Boolean Whether the record has been processed
  6231. * @static
  6232. */
  6233. public static function warning($message, $context = array()){
  6234. return \Monolog\Logger::warning($message, $context);
  6235. }
  6236. /**
  6237. * Adds a log record at the ERROR level.
  6238. *
  6239. * @param string $message The log message
  6240. * @param array $context The log context
  6241. * @return Boolean Whether the record has been processed
  6242. * @static
  6243. */
  6244. public static function error($message, $context = array()){
  6245. return \Monolog\Logger::error($message, $context);
  6246. }
  6247. /**
  6248. * Adds a log record at the CRITICAL level.
  6249. *
  6250. * @param string $message The log message
  6251. * @param array $context The log context
  6252. * @return Boolean Whether the record has been processed
  6253. * @static
  6254. */
  6255. public static function critical($message, $context = array()){
  6256. return \Monolog\Logger::critical($message, $context);
  6257. }
  6258. /**
  6259. * Adds a log record at the ALERT level.
  6260. *
  6261. * @param string $message The log message
  6262. * @param array $context The log context
  6263. * @return Boolean Whether the record has been processed
  6264. * @static
  6265. */
  6266. public static function alert($message, $context = array()){
  6267. return \Monolog\Logger::alert($message, $context);
  6268. }
  6269. /**
  6270. * Adds a log record at the EMERGENCY level.
  6271. *
  6272. * @param string $message The log message
  6273. * @param array $context The log context
  6274. * @return Boolean Whether the record has been processed
  6275. * @static
  6276. */
  6277. public static function emergency($message, $context = array()){
  6278. return \Monolog\Logger::emergency($message, $context);
  6279. }
  6280. /**
  6281. * Log a message to the logs.
  6282. *
  6283. * @param string $level
  6284. * @param string $message
  6285. * @param array $context
  6286. * @return void
  6287. * @static
  6288. */
  6289. public static function log($level, $message, $context = array()){
  6290. \Illuminate\Log\Writer::log($level, $message, $context);
  6291. }
  6292. /**
  6293. * Dynamically pass log calls into the writer.
  6294. *
  6295. * @param string $level
  6296. * @param string $message
  6297. * @param array $context
  6298. * @return void
  6299. * @static
  6300. */
  6301. public static function write($level, $message, $context = array()){
  6302. \Illuminate\Log\Writer::write($level, $message, $context);
  6303. }
  6304. /**
  6305. * Register a file log handler.
  6306. *
  6307. * @param string $path
  6308. * @param string $level
  6309. * @return void
  6310. * @static
  6311. */
  6312. public static function useFiles($path, $level = 'debug'){
  6313. \Illuminate\Log\Writer::useFiles($path, $level);
  6314. }
  6315. /**
  6316. * Register a daily file log handler.
  6317. *
  6318. * @param string $path
  6319. * @param int $days
  6320. * @param string $level
  6321. * @return void
  6322. * @static
  6323. */
  6324. public static function useDailyFiles($path, $days = 0, $level = 'debug'){
  6325. \Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  6326. }
  6327. /**
  6328. * Register a Syslog handler.
  6329. *
  6330. * @param string $name
  6331. * @param string $level
  6332. * @return void
  6333. * @static
  6334. */
  6335. public static function useSyslog($name = 'laravel', $level = 'debug'){
  6336. \Illuminate\Log\Writer::useSyslog($name, $level);
  6337. }
  6338. /**
  6339. * Register an error_log handler.
  6340. *
  6341. * @param string $level
  6342. * @param int $messageType
  6343. * @return void
  6344. * @static
  6345. */
  6346. public static function useErrorLog($level = 'debug', $messageType = 0){
  6347. \Illuminate\Log\Writer::useErrorLog($level, $messageType);
  6348. }
  6349. /**
  6350. * Register a new callback handler for when a log event is triggered.
  6351. *
  6352. * @param \Closure $callback
  6353. * @return void
  6354. * @throws \RuntimeException
  6355. * @static
  6356. */
  6357. public static function listen($callback){
  6358. \Illuminate\Log\Writer::listen($callback);
  6359. }
  6360. /**
  6361. * Get the underlying Monolog instance.
  6362. *
  6363. * @return \Monolog\Logger
  6364. * @static
  6365. */
  6366. public static function getMonolog(){
  6367. return \Illuminate\Log\Writer::getMonolog();
  6368. }
  6369. /**
  6370. * Get the event dispatcher instance.
  6371. *
  6372. * @return \Illuminate\Contracts\Events\Dispatcher
  6373. * @static
  6374. */
  6375. public static function getEventDispatcher(){
  6376. return \Illuminate\Log\Writer::getEventDispatcher();
  6377. }
  6378. /**
  6379. * Set the event dispatcher instance.
  6380. *
  6381. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  6382. * @return void
  6383. * @static
  6384. */
  6385. public static function setEventDispatcher($dispatcher){
  6386. \Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  6387. }
  6388. }
  6389. class Mail extends \Illuminate\Support\Facades\Mail{
  6390. /**
  6391. * Set the global from address and name.
  6392. *
  6393. * @param string $address
  6394. * @param string $name
  6395. * @return void
  6396. * @static
  6397. */
  6398. public static function alwaysFrom($address, $name = null){
  6399. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  6400. }
  6401. /**
  6402. * Send a new message when only a raw text part.
  6403. *
  6404. * @param string $text
  6405. * @param mixed $callback
  6406. * @return int
  6407. * @static
  6408. */
  6409. public static function raw($text, $callback){
  6410. return \Illuminate\Mail\Mailer::raw($text, $callback);
  6411. }
  6412. /**
  6413. * Send a new message when only a plain part.
  6414. *
  6415. * @param string $view
  6416. * @param array $data
  6417. * @param mixed $callback
  6418. * @return int
  6419. * @static
  6420. */
  6421. public static function plain($view, $data, $callback){
  6422. return \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  6423. }
  6424. /**
  6425. * Send a new message using a view.
  6426. *
  6427. * @param string|array $view
  6428. * @param array $data
  6429. * @param \Closure|string $callback
  6430. * @return mixed
  6431. * @static
  6432. */
  6433. public static function send($view, $data, $callback){
  6434. return \Illuminate\Mail\Mailer::send($view, $data, $callback);
  6435. }
  6436. /**
  6437. * Queue a new e-mail message for sending.
  6438. *
  6439. * @param string|array $view
  6440. * @param array $data
  6441. * @param \Closure|string $callback
  6442. * @param string $queue
  6443. * @return mixed
  6444. * @static
  6445. */
  6446. public static function queue($view, $data, $callback, $queue = null){
  6447. return \Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  6448. }
  6449. /**
  6450. * Queue a new e-mail message for sending on the given queue.
  6451. *
  6452. * @param string $queue
  6453. * @param string|array $view
  6454. * @param array $data
  6455. * @param \Closure|string $callback
  6456. * @return mixed
  6457. * @static
  6458. */
  6459. public static function queueOn($queue, $view, $data, $callback){
  6460. return \Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  6461. }
  6462. /**
  6463. * Queue a new e-mail message for sending after (n) seconds.
  6464. *
  6465. * @param int $delay
  6466. * @param string|array $view
  6467. * @param array $data
  6468. * @param \Closure|string $callback
  6469. * @param string $queue
  6470. * @return mixed
  6471. * @static
  6472. */
  6473. public static function later($delay, $view, $data, $callback, $queue = null){
  6474. return \Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  6475. }
  6476. /**
  6477. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6478. *
  6479. * @param string $queue
  6480. * @param int $delay
  6481. * @param string|array $view
  6482. * @param array $data
  6483. * @param \Closure|string $callback
  6484. * @return mixed
  6485. * @static
  6486. */
  6487. public static function laterOn($queue, $delay, $view, $data, $callback){
  6488. return \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  6489. }
  6490. /**
  6491. * Handle a queued e-mail message job.
  6492. *
  6493. * @param \Illuminate\Contracts\Queue\Job $job
  6494. * @param array $data
  6495. * @return void
  6496. * @static
  6497. */
  6498. public static function handleQueuedMessage($job, $data){
  6499. \Illuminate\Mail\Mailer::handleQueuedMessage($job, $data);
  6500. }
  6501. /**
  6502. * Tell the mailer to not really send messages.
  6503. *
  6504. * @param bool $value
  6505. * @return void
  6506. * @static
  6507. */
  6508. public static function pretend($value = true){
  6509. \Illuminate\Mail\Mailer::pretend($value);
  6510. }
  6511. /**
  6512. * Check if the mailer is pretending to send messages.
  6513. *
  6514. * @return bool
  6515. * @static
  6516. */
  6517. public static function isPretending(){
  6518. return \Illuminate\Mail\Mailer::isPretending();
  6519. }
  6520. /**
  6521. * Get the view factory instance.
  6522. *
  6523. * @return \Illuminate\Contracts\View\Factory
  6524. * @static
  6525. */
  6526. public static function getViewFactory(){
  6527. return \Illuminate\Mail\Mailer::getViewFactory();
  6528. }
  6529. /**
  6530. * Get the Swift Mailer instance.
  6531. *
  6532. * @return \Swift_Mailer
  6533. * @static
  6534. */
  6535. public static function getSwiftMailer(){
  6536. return \Illuminate\Mail\Mailer::getSwiftMailer();
  6537. }
  6538. /**
  6539. * Get the array of failed recipients.
  6540. *
  6541. * @return array
  6542. * @static
  6543. */
  6544. public static function failures(){
  6545. return \Illuminate\Mail\Mailer::failures();
  6546. }
  6547. /**
  6548. * Set the Swift Mailer instance.
  6549. *
  6550. * @param \Swift_Mailer $swift
  6551. * @return void
  6552. * @static
  6553. */
  6554. public static function setSwiftMailer($swift){
  6555. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  6556. }
  6557. /**
  6558. * Set the log writer instance.
  6559. *
  6560. * @param \Psr\Log\LoggerInterface $logger
  6561. * @return $this
  6562. * @static
  6563. */
  6564. public static function setLogger($logger){
  6565. return \Illuminate\Mail\Mailer::setLogger($logger);
  6566. }
  6567. /**
  6568. * Set the queue manager instance.
  6569. *
  6570. * @param \Illuminate\Contracts\Queue\Queue $queue
  6571. * @return $this
  6572. * @static
  6573. */
  6574. public static function setQueue($queue){
  6575. return \Illuminate\Mail\Mailer::setQueue($queue);
  6576. }
  6577. /**
  6578. * Set the IoC container instance.
  6579. *
  6580. * @param \Illuminate\Contracts\Container\Container $container
  6581. * @return void
  6582. * @static
  6583. */
  6584. public static function setContainer($container){
  6585. \Illuminate\Mail\Mailer::setContainer($container);
  6586. }
  6587. }
  6588. class Password extends \Illuminate\Support\Facades\Password{
  6589. /**
  6590. * Send a password reset link to a user.
  6591. *
  6592. * @param array $credentials
  6593. * @param \Closure|null $callback
  6594. * @return string
  6595. * @static
  6596. */
  6597. public static function sendResetLink($credentials, $callback = null){
  6598. return \Illuminate\Auth\Passwords\PasswordBroker::sendResetLink($credentials, $callback);
  6599. }
  6600. /**
  6601. * Send the password reset link via e-mail.
  6602. *
  6603. * @param \Illuminate\Contracts\Auth\CanResetPassword $user
  6604. * @param string $token
  6605. * @param \Closure|null $callback
  6606. * @return int
  6607. * @static
  6608. */
  6609. public static function emailResetLink($user, $token, $callback = null){
  6610. return \Illuminate\Auth\Passwords\PasswordBroker::emailResetLink($user, $token, $callback);
  6611. }
  6612. /**
  6613. * Reset the password for the given token.
  6614. *
  6615. * @param array $credentials
  6616. * @param \Closure $callback
  6617. * @return mixed
  6618. * @static
  6619. */
  6620. public static function reset($credentials, $callback){
  6621. return \Illuminate\Auth\Passwords\PasswordBroker::reset($credentials, $callback);
  6622. }
  6623. /**
  6624. * Set a custom password validator.
  6625. *
  6626. * @param \Closure $callback
  6627. * @return void
  6628. * @static
  6629. */
  6630. public static function validator($callback){
  6631. \Illuminate\Auth\Passwords\PasswordBroker::validator($callback);
  6632. }
  6633. /**
  6634. * Determine if the passwords match for the request.
  6635. *
  6636. * @param array $credentials
  6637. * @return bool
  6638. * @static
  6639. */
  6640. public static function validateNewPassword($credentials){
  6641. return \Illuminate\Auth\Passwords\PasswordBroker::validateNewPassword($credentials);
  6642. }
  6643. /**
  6644. * Get the user for the given credentials.
  6645. *
  6646. * @param array $credentials
  6647. * @return \Illuminate\Contracts\Auth\CanResetPassword
  6648. * @throws \UnexpectedValueException
  6649. * @static
  6650. */
  6651. public static function getUser($credentials){
  6652. return \Illuminate\Auth\Passwords\PasswordBroker::getUser($credentials);
  6653. }
  6654. }
  6655. class Queue extends \Illuminate\Support\Facades\Queue{
  6656. /**
  6657. * Register an event listener for the daemon queue loop.
  6658. *
  6659. * @param mixed $callback
  6660. * @return void
  6661. * @static
  6662. */
  6663. public static function looping($callback){
  6664. \Illuminate\Queue\QueueManager::looping($callback);
  6665. }
  6666. /**
  6667. * Register an event listener for the failed job event.
  6668. *
  6669. * @param mixed $callback
  6670. * @return void
  6671. * @static
  6672. */
  6673. public static function failing($callback){
  6674. \Illuminate\Queue\QueueManager::failing($callback);
  6675. }
  6676. /**
  6677. * Register an event listener for the daemon queue stopping.
  6678. *
  6679. * @param mixed $callback
  6680. * @return void
  6681. * @static
  6682. */
  6683. public static function stopping($callback){
  6684. \Illuminate\Queue\QueueManager::stopping($callback);
  6685. }
  6686. /**
  6687. * Determine if the driver is connected.
  6688. *
  6689. * @param string $name
  6690. * @return bool
  6691. * @static
  6692. */
  6693. public static function connected($name = null){
  6694. return \Illuminate\Queue\QueueManager::connected($name);
  6695. }
  6696. /**
  6697. * Resolve a queue connection instance.
  6698. *
  6699. * @param string $name
  6700. * @return \Illuminate\Contracts\Queue\Queue
  6701. * @static
  6702. */
  6703. public static function connection($name = null){
  6704. return \Illuminate\Queue\QueueManager::connection($name);
  6705. }
  6706. /**
  6707. * Add a queue connection resolver.
  6708. *
  6709. * @param string $driver
  6710. * @param \Closure $resolver
  6711. * @return void
  6712. * @static
  6713. */
  6714. public static function extend($driver, $resolver){
  6715. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  6716. }
  6717. /**
  6718. * Add a queue connection resolver.
  6719. *
  6720. * @param string $driver
  6721. * @param \Closure $resolver
  6722. * @return void
  6723. * @static
  6724. */
  6725. public static function addConnector($driver, $resolver){
  6726. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  6727. }
  6728. /**
  6729. * Get the name of the default queue connection.
  6730. *
  6731. * @return string
  6732. * @static
  6733. */
  6734. public static function getDefaultDriver(){
  6735. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  6736. }
  6737. /**
  6738. * Set the name of the default queue connection.
  6739. *
  6740. * @param string $name
  6741. * @return void
  6742. * @static
  6743. */
  6744. public static function setDefaultDriver($name){
  6745. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  6746. }
  6747. /**
  6748. * Get the full name for the given connection.
  6749. *
  6750. * @param string $connection
  6751. * @return string
  6752. * @static
  6753. */
  6754. public static function getName($connection = null){
  6755. return \Illuminate\Queue\QueueManager::getName($connection);
  6756. }
  6757. /**
  6758. * Determine if the application is in maintenance mode.
  6759. *
  6760. * @return bool
  6761. * @static
  6762. */
  6763. public static function isDownForMaintenance(){
  6764. return \Illuminate\Queue\QueueManager::isDownForMaintenance();
  6765. }
  6766. /**
  6767. * Push a new job onto the queue.
  6768. *
  6769. * @param string $job
  6770. * @param mixed $data
  6771. * @param string $queue
  6772. * @return mixed
  6773. * @static
  6774. */
  6775. public static function push($job, $data = '', $queue = null){
  6776. return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
  6777. }
  6778. /**
  6779. * Push a raw payload onto the queue.
  6780. *
  6781. * @param string $payload
  6782. * @param string $queue
  6783. * @param array $options
  6784. * @return mixed
  6785. * @static
  6786. */
  6787. public static function pushRaw($payload, $queue = null, $options = array()){
  6788. return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
  6789. }
  6790. /**
  6791. * Push a new job onto the queue after a delay.
  6792. *
  6793. * @param \DateTime|int $delay
  6794. * @param string $job
  6795. * @param mixed $data
  6796. * @param string $queue
  6797. * @return mixed
  6798. * @static
  6799. */
  6800. public static function later($delay, $job, $data = '', $queue = null){
  6801. return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
  6802. }
  6803. /**
  6804. * Pop the next job off of the queue.
  6805. *
  6806. * @param string $queue
  6807. * @return \Illuminate\Contracts\Queue\Job|null
  6808. * @static
  6809. */
  6810. public static function pop($queue = null){
  6811. return \Illuminate\Queue\SyncQueue::pop($queue);
  6812. }
  6813. /**
  6814. * Push a new job onto the queue.
  6815. *
  6816. * @param string $queue
  6817. * @param string $job
  6818. * @param mixed $data
  6819. * @return mixed
  6820. * @static
  6821. */
  6822. public static function pushOn($queue, $job, $data = ''){
  6823. //Method inherited from \Illuminate\Queue\Queue
  6824. return \Illuminate\Queue\SyncQueue::pushOn($queue, $job, $data);
  6825. }
  6826. /**
  6827. * Push a new job onto the queue after a delay.
  6828. *
  6829. * @param string $queue
  6830. * @param \DateTime|int $delay
  6831. * @param string $job
  6832. * @param mixed $data
  6833. * @return mixed
  6834. * @static
  6835. */
  6836. public static function laterOn($queue, $delay, $job, $data = ''){
  6837. //Method inherited from \Illuminate\Queue\Queue
  6838. return \Illuminate\Queue\SyncQueue::laterOn($queue, $delay, $job, $data);
  6839. }
  6840. /**
  6841. * Marshal a push queue request and fire the job.
  6842. *
  6843. * @throws \RuntimeException
  6844. * @static
  6845. */
  6846. public static function marshal(){
  6847. //Method inherited from \Illuminate\Queue\Queue
  6848. return \Illuminate\Queue\SyncQueue::marshal();
  6849. }
  6850. /**
  6851. * Push an array of jobs onto the queue.
  6852. *
  6853. * @param array $jobs
  6854. * @param mixed $data
  6855. * @param string $queue
  6856. * @return mixed
  6857. * @static
  6858. */
  6859. public static function bulk($jobs, $data = '', $queue = null){
  6860. //Method inherited from \Illuminate\Queue\Queue
  6861. return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
  6862. }
  6863. /**
  6864. * Set the IoC container instance.
  6865. *
  6866. * @param \Illuminate\Container\Container $container
  6867. * @return void
  6868. * @static
  6869. */
  6870. public static function setContainer($container){
  6871. //Method inherited from \Illuminate\Queue\Queue
  6872. \Illuminate\Queue\SyncQueue::setContainer($container);
  6873. }
  6874. /**
  6875. * Set the encrypter instance.
  6876. *
  6877. * @param \Illuminate\Contracts\Encryption\Encrypter $crypt
  6878. * @return void
  6879. * @static
  6880. */
  6881. public static function setEncrypter($crypt){
  6882. //Method inherited from \Illuminate\Queue\Queue
  6883. \Illuminate\Queue\SyncQueue::setEncrypter($crypt);
  6884. }
  6885. }
  6886. class Redirect extends \Illuminate\Support\Facades\Redirect{
  6887. /**
  6888. * Create a new redirect response to the "home" route.
  6889. *
  6890. * @param int $status
  6891. * @return \Illuminate\Http\RedirectResponse
  6892. * @static
  6893. */
  6894. public static function home($status = 302){
  6895. return \Illuminate\Routing\Redirector::home($status);
  6896. }
  6897. /**
  6898. * Create a new redirect response to the previous location.
  6899. *
  6900. * @param int $status
  6901. * @param array $headers
  6902. * @return \Illuminate\Http\RedirectResponse
  6903. * @static
  6904. */
  6905. public static function back($status = 302, $headers = array()){
  6906. return \Illuminate\Routing\Redirector::back($status, $headers);
  6907. }
  6908. /**
  6909. * Create a new redirect response to the current URI.
  6910. *
  6911. * @param int $status
  6912. * @param array $headers
  6913. * @return \Illuminate\Http\RedirectResponse
  6914. * @static
  6915. */
  6916. public static function refresh($status = 302, $headers = array()){
  6917. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  6918. }
  6919. /**
  6920. * Create a new redirect response, while putting the current URL in the session.
  6921. *
  6922. * @param string $path
  6923. * @param int $status
  6924. * @param array $headers
  6925. * @param bool $secure
  6926. * @return \Illuminate\Http\RedirectResponse
  6927. * @static
  6928. */
  6929. public static function guest($path, $status = 302, $headers = array(), $secure = null){
  6930. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  6931. }
  6932. /**
  6933. * Create a new redirect response to the previously intended location.
  6934. *
  6935. * @param string $default
  6936. * @param int $status
  6937. * @param array $headers
  6938. * @param bool $secure
  6939. * @return \Illuminate\Http\RedirectResponse
  6940. * @static
  6941. */
  6942. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null){
  6943. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  6944. }
  6945. /**
  6946. * Create a new redirect response to the given path.
  6947. *
  6948. * @param string $path
  6949. * @param int $status
  6950. * @param array $headers
  6951. * @param bool $secure
  6952. * @return \Illuminate\Http\RedirectResponse
  6953. * @static
  6954. */
  6955. public static function to($path, $status = 302, $headers = array(), $secure = null){
  6956. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  6957. }
  6958. /**
  6959. * Create a new redirect response to an external URL (no validation).
  6960. *
  6961. * @param string $path
  6962. * @param int $status
  6963. * @param array $headers
  6964. * @return \Illuminate\Http\RedirectResponse
  6965. * @static
  6966. */
  6967. public static function away($path, $status = 302, $headers = array()){
  6968. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  6969. }
  6970. /**
  6971. * Create a new redirect response to the given HTTPS path.
  6972. *
  6973. * @param string $path
  6974. * @param int $status
  6975. * @param array $headers
  6976. * @return \Illuminate\Http\RedirectResponse
  6977. * @static
  6978. */
  6979. public static function secure($path, $status = 302, $headers = array()){
  6980. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  6981. }
  6982. /**
  6983. * Create a new redirect response to a named route.
  6984. *
  6985. * @param string $route
  6986. * @param array $parameters
  6987. * @param int $status
  6988. * @param array $headers
  6989. * @return \Illuminate\Http\RedirectResponse
  6990. * @static
  6991. */
  6992. public static function route($route, $parameters = array(), $status = 302, $headers = array()){
  6993. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  6994. }
  6995. /**
  6996. * Create a new redirect response to a controller action.
  6997. *
  6998. * @param string $action
  6999. * @param array $parameters
  7000. * @param int $status
  7001. * @param array $headers
  7002. * @return \Illuminate\Http\RedirectResponse
  7003. * @static
  7004. */
  7005. public static function action($action, $parameters = array(), $status = 302, $headers = array()){
  7006. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  7007. }
  7008. /**
  7009. * Get the URL generator instance.
  7010. *
  7011. * @return \Illuminate\Routing\UrlGenerator
  7012. * @static
  7013. */
  7014. public static function getUrlGenerator(){
  7015. return \Illuminate\Routing\Redirector::getUrlGenerator();
  7016. }
  7017. /**
  7018. * Set the active session store.
  7019. *
  7020. * @param \Illuminate\Session\Store $session
  7021. * @return void
  7022. * @static
  7023. */
  7024. public static function setSession($session){
  7025. \Illuminate\Routing\Redirector::setSession($session);
  7026. }
  7027. }
  7028. class Request extends \Illuminate\Support\Facades\Request{
  7029. /**
  7030. * Create a new Illuminate HTTP request from server variables.
  7031. *
  7032. * @return static
  7033. * @static
  7034. */
  7035. public static function capture(){
  7036. return \Illuminate\Http\Request::capture();
  7037. }
  7038. /**
  7039. * Return the Request instance.
  7040. *
  7041. * @return $this
  7042. * @static
  7043. */
  7044. public static function instance(){
  7045. return \Illuminate\Http\Request::instance();
  7046. }
  7047. /**
  7048. * Get the request method.
  7049. *
  7050. * @return string
  7051. * @static
  7052. */
  7053. public static function method(){
  7054. return \Illuminate\Http\Request::method();
  7055. }
  7056. /**
  7057. * Get the root URL for the application.
  7058. *
  7059. * @return string
  7060. * @static
  7061. */
  7062. public static function root(){
  7063. return \Illuminate\Http\Request::root();
  7064. }
  7065. /**
  7066. * Get the URL (no query string) for the request.
  7067. *
  7068. * @return string
  7069. * @static
  7070. */
  7071. public static function url(){
  7072. return \Illuminate\Http\Request::url();
  7073. }
  7074. /**
  7075. * Get the full URL for the request.
  7076. *
  7077. * @return string
  7078. * @static
  7079. */
  7080. public static function fullUrl(){
  7081. return \Illuminate\Http\Request::fullUrl();
  7082. }
  7083. /**
  7084. * Get the current path info for the request.
  7085. *
  7086. * @return string
  7087. * @static
  7088. */
  7089. public static function path(){
  7090. return \Illuminate\Http\Request::path();
  7091. }
  7092. /**
  7093. * Get the current encoded path info for the request.
  7094. *
  7095. * @return string
  7096. * @static
  7097. */
  7098. public static function decodedPath(){
  7099. return \Illuminate\Http\Request::decodedPath();
  7100. }
  7101. /**
  7102. * Get a segment from the URI (1 based index).
  7103. *
  7104. * @param int $index
  7105. * @param mixed $default
  7106. * @return string
  7107. * @static
  7108. */
  7109. public static function segment($index, $default = null){
  7110. return \Illuminate\Http\Request::segment($index, $default);
  7111. }
  7112. /**
  7113. * Get all of the segments for the request path.
  7114. *
  7115. * @return array
  7116. * @static
  7117. */
  7118. public static function segments(){
  7119. return \Illuminate\Http\Request::segments();
  7120. }
  7121. /**
  7122. * Determine if the current request URI matches a pattern.
  7123. *
  7124. * @param mixed string
  7125. * @return bool
  7126. * @static
  7127. */
  7128. public static function is(){
  7129. return \Illuminate\Http\Request::is();
  7130. }
  7131. /**
  7132. * Determine if the request is the result of an AJAX call.
  7133. *
  7134. * @return bool
  7135. * @static
  7136. */
  7137. public static function ajax(){
  7138. return \Illuminate\Http\Request::ajax();
  7139. }
  7140. /**
  7141. * Determine if the request is the result of an PJAX call.
  7142. *
  7143. * @return bool
  7144. * @static
  7145. */
  7146. public static function pjax(){
  7147. return \Illuminate\Http\Request::pjax();
  7148. }
  7149. /**
  7150. * Determine if the request is over HTTPS.
  7151. *
  7152. * @return bool
  7153. * @static
  7154. */
  7155. public static function secure(){
  7156. return \Illuminate\Http\Request::secure();
  7157. }
  7158. /**
  7159. * Returns the client IP address.
  7160. *
  7161. * @return string
  7162. * @static
  7163. */
  7164. public static function ip(){
  7165. return \Illuminate\Http\Request::ip();
  7166. }
  7167. /**
  7168. * Returns the client IP addresses.
  7169. *
  7170. * @return array
  7171. * @static
  7172. */
  7173. public static function ips(){
  7174. return \Illuminate\Http\Request::ips();
  7175. }
  7176. /**
  7177. * Determine if the request contains a given input item key.
  7178. *
  7179. * @param string|array $key
  7180. * @return bool
  7181. * @static
  7182. */
  7183. public static function exists($key){
  7184. return \Illuminate\Http\Request::exists($key);
  7185. }
  7186. /**
  7187. * Determine if the request contains a non-empty value for an input item.
  7188. *
  7189. * @param string|array $key
  7190. * @return bool
  7191. * @static
  7192. */
  7193. public static function has($key){
  7194. return \Illuminate\Http\Request::has($key);
  7195. }
  7196. /**
  7197. * Get all of the input and files for the request.
  7198. *
  7199. * @return array
  7200. * @static
  7201. */
  7202. public static function all(){
  7203. return \Illuminate\Http\Request::all();
  7204. }
  7205. /**
  7206. * Retrieve an input item from the request.
  7207. *
  7208. * @param string $key
  7209. * @param mixed $default
  7210. * @return string|array
  7211. * @static
  7212. */
  7213. public static function input($key = null, $default = null){
  7214. return \Illuminate\Http\Request::input($key, $default);
  7215. }
  7216. /**
  7217. * Get a subset of the items from the input data.
  7218. *
  7219. * @param array $keys
  7220. * @return array
  7221. * @static
  7222. */
  7223. public static function only($keys){
  7224. return \Illuminate\Http\Request::only($keys);
  7225. }
  7226. /**
  7227. * Get all of the input except for a specified array of items.
  7228. *
  7229. * @param array $keys
  7230. * @return array
  7231. * @static
  7232. */
  7233. public static function except($keys){
  7234. return \Illuminate\Http\Request::except($keys);
  7235. }
  7236. /**
  7237. * Retrieve a query string item from the request.
  7238. *
  7239. * @param string $key
  7240. * @param mixed $default
  7241. * @return string
  7242. * @static
  7243. */
  7244. public static function query($key = null, $default = null){
  7245. return \Illuminate\Http\Request::query($key, $default);
  7246. }
  7247. /**
  7248. * Determine if a cookie is set on the request.
  7249. *
  7250. * @param string $key
  7251. * @return bool
  7252. * @static
  7253. */
  7254. public static function hasCookie($key){
  7255. return \Illuminate\Http\Request::hasCookie($key);
  7256. }
  7257. /**
  7258. * Retrieve a cookie from the request.
  7259. *
  7260. * @param string $key
  7261. * @param mixed $default
  7262. * @return string
  7263. * @static
  7264. */
  7265. public static function cookie($key = null, $default = null){
  7266. return \Illuminate\Http\Request::cookie($key, $default);
  7267. }
  7268. /**
  7269. * Retrieve a file from the request.
  7270. *
  7271. * @param string $key
  7272. * @param mixed $default
  7273. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  7274. * @static
  7275. */
  7276. public static function file($key = null, $default = null){
  7277. return \Illuminate\Http\Request::file($key, $default);
  7278. }
  7279. /**
  7280. * Determine if the uploaded data contains a file.
  7281. *
  7282. * @param string $key
  7283. * @return bool
  7284. * @static
  7285. */
  7286. public static function hasFile($key){
  7287. return \Illuminate\Http\Request::hasFile($key);
  7288. }
  7289. /**
  7290. * Retrieve a header from the request.
  7291. *
  7292. * @param string $key
  7293. * @param mixed $default
  7294. * @return string
  7295. * @static
  7296. */
  7297. public static function header($key = null, $default = null){
  7298. return \Illuminate\Http\Request::header($key, $default);
  7299. }
  7300. /**
  7301. * Retrieve a server variable from the request.
  7302. *
  7303. * @param string $key
  7304. * @param mixed $default
  7305. * @return string
  7306. * @static
  7307. */
  7308. public static function server($key = null, $default = null){
  7309. return \Illuminate\Http\Request::server($key, $default);
  7310. }
  7311. /**
  7312. * Retrieve an old input item.
  7313. *
  7314. * @param string $key
  7315. * @param mixed $default
  7316. * @return mixed
  7317. * @static
  7318. */
  7319. public static function old($key = null, $default = null){
  7320. return \Illuminate\Http\Request::old($key, $default);
  7321. }
  7322. /**
  7323. * Flash the input for the current request to the session.
  7324. *
  7325. * @param string $filter
  7326. * @param array $keys
  7327. * @return void
  7328. * @static
  7329. */
  7330. public static function flash($filter = null, $keys = array()){
  7331. \Illuminate\Http\Request::flash($filter, $keys);
  7332. }
  7333. /**
  7334. * Flash only some of the input to the session.
  7335. *
  7336. * @param mixed string
  7337. * @return void
  7338. * @static
  7339. */
  7340. public static function flashOnly($keys){
  7341. \Illuminate\Http\Request::flashOnly($keys);
  7342. }
  7343. /**
  7344. * Flash only some of the input to the session.
  7345. *
  7346. * @param mixed string
  7347. * @return void
  7348. * @static
  7349. */
  7350. public static function flashExcept($keys){
  7351. \Illuminate\Http\Request::flashExcept($keys);
  7352. }
  7353. /**
  7354. * Flush all of the old input from the session.
  7355. *
  7356. * @return void
  7357. * @static
  7358. */
  7359. public static function flush(){
  7360. \Illuminate\Http\Request::flush();
  7361. }
  7362. /**
  7363. * Merge new input into the current request's input array.
  7364. *
  7365. * @param array $input
  7366. * @return void
  7367. * @static
  7368. */
  7369. public static function merge($input){
  7370. \Illuminate\Http\Request::merge($input);
  7371. }
  7372. /**
  7373. * Replace the input for the current request.
  7374. *
  7375. * @param array $input
  7376. * @return void
  7377. * @static
  7378. */
  7379. public static function replace($input){
  7380. \Illuminate\Http\Request::replace($input);
  7381. }
  7382. /**
  7383. * Get the JSON payload for the request.
  7384. *
  7385. * @param string $key
  7386. * @param mixed $default
  7387. * @return mixed
  7388. * @static
  7389. */
  7390. public static function json($key = null, $default = null){
  7391. return \Illuminate\Http\Request::json($key, $default);
  7392. }
  7393. /**
  7394. * Determine if the request is sending JSON.
  7395. *
  7396. * @return bool
  7397. * @static
  7398. */
  7399. public static function isJson(){
  7400. return \Illuminate\Http\Request::isJson();
  7401. }
  7402. /**
  7403. * Determine if the current request is asking for JSON in return.
  7404. *
  7405. * @return bool
  7406. * @static
  7407. */
  7408. public static function wantsJson(){
  7409. return \Illuminate\Http\Request::wantsJson();
  7410. }
  7411. /**
  7412. * Get the data format expected in the response.
  7413. *
  7414. * @param string $default
  7415. * @return string
  7416. * @static
  7417. */
  7418. public static function format($default = 'html'){
  7419. return \Illuminate\Http\Request::format($default);
  7420. }
  7421. /**
  7422. * Create an Illuminate request from a Symfony instance.
  7423. *
  7424. * @param \Symfony\Component\HttpFoundation\Request $request
  7425. * @return \Illuminate\Http\Request
  7426. * @static
  7427. */
  7428. public static function createFromBase($request){
  7429. return \Illuminate\Http\Request::createFromBase($request);
  7430. }
  7431. /**
  7432. * Clones a request and overrides some of its parameters.
  7433. *
  7434. * @param array $query The GET parameters
  7435. * @param array $request The POST parameters
  7436. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7437. * @param array $cookies The COOKIE parameters
  7438. * @param array $files The FILES parameters
  7439. * @param array $server The SERVER parameters
  7440. * @return \Symfony\Component\HttpFoundation\Request The duplicated request
  7441. * @api
  7442. * @static
  7443. */
  7444. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  7445. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  7446. }
  7447. /**
  7448. * Get the session associated with the request.
  7449. *
  7450. * @return \Illuminate\Session\Store
  7451. * @throws \RuntimeException
  7452. * @static
  7453. */
  7454. public static function session(){
  7455. return \Illuminate\Http\Request::session();
  7456. }
  7457. /**
  7458. * Get the user making the request.
  7459. *
  7460. * @return mixed
  7461. * @static
  7462. */
  7463. public static function user(){
  7464. return \Illuminate\Http\Request::user();
  7465. }
  7466. /**
  7467. * Get the route handling the request.
  7468. *
  7469. * @return \Illuminate\Routing\Route|null
  7470. * @static
  7471. */
  7472. public static function route(){
  7473. return \Illuminate\Http\Request::route();
  7474. }
  7475. /**
  7476. * Get the user resolver callback.
  7477. *
  7478. * @return \Closure
  7479. * @static
  7480. */
  7481. public static function getUserResolver(){
  7482. return \Illuminate\Http\Request::getUserResolver();
  7483. }
  7484. /**
  7485. * Set the user resolver callback.
  7486. *
  7487. * @param \Closure $callback
  7488. * @return $this
  7489. * @static
  7490. */
  7491. public static function setUserResolver($callback){
  7492. return \Illuminate\Http\Request::setUserResolver($callback);
  7493. }
  7494. /**
  7495. * Get the route resolver callback.
  7496. *
  7497. * @return \Closure
  7498. * @static
  7499. */
  7500. public static function getRouteResolver(){
  7501. return \Illuminate\Http\Request::getRouteResolver();
  7502. }
  7503. /**
  7504. * Set the route resolver callback.
  7505. *
  7506. * @param \Closure $callback
  7507. * @return $this
  7508. * @static
  7509. */
  7510. public static function setRouteResolver($callback){
  7511. return \Illuminate\Http\Request::setRouteResolver($callback);
  7512. }
  7513. /**
  7514. * Determine if the given offset exists.
  7515. *
  7516. * @param string $offset
  7517. * @return bool
  7518. * @static
  7519. */
  7520. public static function offsetExists($offset){
  7521. return \Illuminate\Http\Request::offsetExists($offset);
  7522. }
  7523. /**
  7524. * Get the value at the given offset.
  7525. *
  7526. * @param string $offset
  7527. * @return mixed
  7528. * @static
  7529. */
  7530. public static function offsetGet($offset){
  7531. return \Illuminate\Http\Request::offsetGet($offset);
  7532. }
  7533. /**
  7534. * Set the value at the given offset.
  7535. *
  7536. * @param string $offset
  7537. * @param mixed $value
  7538. * @return void
  7539. * @static
  7540. */
  7541. public static function offsetSet($offset, $value){
  7542. \Illuminate\Http\Request::offsetSet($offset, $value);
  7543. }
  7544. /**
  7545. * Remove the value at the given offset.
  7546. *
  7547. * @param string $offset
  7548. * @return void
  7549. * @static
  7550. */
  7551. public static function offsetUnset($offset){
  7552. \Illuminate\Http\Request::offsetUnset($offset);
  7553. }
  7554. /**
  7555. * Sets the parameters for this request.
  7556. *
  7557. * This method also re-initializes all properties.
  7558. *
  7559. * @param array $query The GET parameters
  7560. * @param array $request The POST parameters
  7561. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7562. * @param array $cookies The COOKIE parameters
  7563. * @param array $files The FILES parameters
  7564. * @param array $server The SERVER parameters
  7565. * @param string $content The raw body data
  7566. * @api
  7567. * @static
  7568. */
  7569. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  7570. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7571. return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7572. }
  7573. /**
  7574. * Creates a new request with values from PHP's super globals.
  7575. *
  7576. * @return \Symfony\Component\HttpFoundation\Request A new request
  7577. * @api
  7578. * @static
  7579. */
  7580. public static function createFromGlobals(){
  7581. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7582. return \Illuminate\Http\Request::createFromGlobals();
  7583. }
  7584. /**
  7585. * Creates a Request based on a given URI and configuration.
  7586. *
  7587. * The information contained in the URI always take precedence
  7588. * over the other information (server and parameters).
  7589. *
  7590. * @param string $uri The URI
  7591. * @param string $method The HTTP method
  7592. * @param array $parameters The query (GET) or request (POST) parameters
  7593. * @param array $cookies The request cookies ($_COOKIE)
  7594. * @param array $files The request files ($_FILES)
  7595. * @param array $server The server parameters ($_SERVER)
  7596. * @param string $content The raw body data
  7597. * @return \Symfony\Component\HttpFoundation\Request A Request instance
  7598. * @api
  7599. * @static
  7600. */
  7601. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  7602. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7603. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7604. }
  7605. /**
  7606. * Sets a callable able to create a Request instance.
  7607. *
  7608. * This is mainly useful when you need to override the Request class
  7609. * to keep BC with an existing system. It should not be used for any
  7610. * other purpose.
  7611. *
  7612. * @param callable|null $callable A PHP callable
  7613. * @static
  7614. */
  7615. public static function setFactory($callable){
  7616. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7617. return \Illuminate\Http\Request::setFactory($callable);
  7618. }
  7619. /**
  7620. * Overrides the PHP global variables according to this request instance.
  7621. *
  7622. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7623. * $_FILES is never overridden, see rfc1867
  7624. *
  7625. * @api
  7626. * @static
  7627. */
  7628. public static function overrideGlobals(){
  7629. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7630. return \Illuminate\Http\Request::overrideGlobals();
  7631. }
  7632. /**
  7633. * Sets a list of trusted proxies.
  7634. *
  7635. * You should only list the reverse proxies that you manage directly.
  7636. *
  7637. * @param array $proxies A list of trusted proxies
  7638. * @api
  7639. * @static
  7640. */
  7641. public static function setTrustedProxies($proxies){
  7642. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7643. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7644. }
  7645. /**
  7646. * Gets the list of trusted proxies.
  7647. *
  7648. * @return array An array of trusted proxies.
  7649. * @static
  7650. */
  7651. public static function getTrustedProxies(){
  7652. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7653. return \Illuminate\Http\Request::getTrustedProxies();
  7654. }
  7655. /**
  7656. * Sets a list of trusted host patterns.
  7657. *
  7658. * You should only list the hosts you manage using regexs.
  7659. *
  7660. * @param array $hostPatterns A list of trusted host patterns
  7661. * @static
  7662. */
  7663. public static function setTrustedHosts($hostPatterns){
  7664. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7665. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7666. }
  7667. /**
  7668. * Gets the list of trusted host patterns.
  7669. *
  7670. * @return array An array of trusted host patterns.
  7671. * @static
  7672. */
  7673. public static function getTrustedHosts(){
  7674. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7675. return \Illuminate\Http\Request::getTrustedHosts();
  7676. }
  7677. /**
  7678. * Sets the name for trusted headers.
  7679. *
  7680. * The following header keys are supported:
  7681. *
  7682. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7683. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7684. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7685. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7686. *
  7687. * Setting an empty value allows to disable the trusted header for the given key.
  7688. *
  7689. * @param string $key The header key
  7690. * @param string $value The header name
  7691. * @throws \InvalidArgumentException
  7692. * @static
  7693. */
  7694. public static function setTrustedHeaderName($key, $value){
  7695. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7696. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7697. }
  7698. /**
  7699. * Gets the trusted proxy header name.
  7700. *
  7701. * @param string $key The header key
  7702. * @return string The header name
  7703. * @throws \InvalidArgumentException
  7704. * @static
  7705. */
  7706. public static function getTrustedHeaderName($key){
  7707. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7708. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7709. }
  7710. /**
  7711. * Normalizes a query string.
  7712. *
  7713. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7714. * have consistent escaping and unneeded delimiters are removed.
  7715. *
  7716. * @param string $qs Query string
  7717. * @return string A normalized query string for the Request
  7718. * @static
  7719. */
  7720. public static function normalizeQueryString($qs){
  7721. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7722. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7723. }
  7724. /**
  7725. * Enables support for the _method request parameter to determine the intended HTTP method.
  7726. *
  7727. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7728. * Check that you are using CSRF tokens when required.
  7729. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7730. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7731. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7732. *
  7733. * The HTTP method can only be overridden when the real HTTP method is POST.
  7734. *
  7735. * @static
  7736. */
  7737. public static function enableHttpMethodParameterOverride(){
  7738. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7739. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7740. }
  7741. /**
  7742. * Checks whether support for the _method request parameter is enabled.
  7743. *
  7744. * @return bool True when the _method request parameter is enabled, false otherwise
  7745. * @static
  7746. */
  7747. public static function getHttpMethodParameterOverride(){
  7748. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7749. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7750. }
  7751. /**
  7752. * Gets a "parameter" value.
  7753. *
  7754. * This method is mainly useful for libraries that want to provide some flexibility.
  7755. *
  7756. * Order of precedence: GET, PATH, POST
  7757. *
  7758. * Avoid using this method in controllers:
  7759. *
  7760. * * slow
  7761. * * prefer to get from a "named" source
  7762. *
  7763. * It is better to explicitly get request parameters from the appropriate
  7764. * public property instead (query, attributes, request).
  7765. *
  7766. * @param string $key the key
  7767. * @param mixed $default the default value
  7768. * @param bool $deep is parameter deep in multidimensional array
  7769. * @return mixed
  7770. * @static
  7771. */
  7772. public static function get($key, $default = null, $deep = false){
  7773. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7774. return \Illuminate\Http\Request::get($key, $default, $deep);
  7775. }
  7776. /**
  7777. * Gets the Session.
  7778. *
  7779. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7780. * @api
  7781. * @static
  7782. */
  7783. public static function getSession(){
  7784. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7785. return \Illuminate\Http\Request::getSession();
  7786. }
  7787. /**
  7788. * Whether the request contains a Session which was started in one of the
  7789. * previous requests.
  7790. *
  7791. * @return bool
  7792. * @api
  7793. * @static
  7794. */
  7795. public static function hasPreviousSession(){
  7796. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7797. return \Illuminate\Http\Request::hasPreviousSession();
  7798. }
  7799. /**
  7800. * Whether the request contains a Session object.
  7801. *
  7802. * This method does not give any information about the state of the session object,
  7803. * like whether the session is started or not. It is just a way to check if this Request
  7804. * is associated with a Session instance.
  7805. *
  7806. * @return bool true when the Request contains a Session object, false otherwise
  7807. * @api
  7808. * @static
  7809. */
  7810. public static function hasSession(){
  7811. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7812. return \Illuminate\Http\Request::hasSession();
  7813. }
  7814. /**
  7815. * Sets the Session.
  7816. *
  7817. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7818. * @api
  7819. * @static
  7820. */
  7821. public static function setSession($session){
  7822. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7823. return \Illuminate\Http\Request::setSession($session);
  7824. }
  7825. /**
  7826. * Returns the client IP addresses.
  7827. *
  7828. * In the returned array the most trusted IP address is first, and the
  7829. * least trusted one last. The "real" client IP address is the last one,
  7830. * but this is also the least trusted one. Trusted proxies are stripped.
  7831. *
  7832. * Use this method carefully; you should use getClientIp() instead.
  7833. *
  7834. * @return array The client IP addresses
  7835. * @see getClientIp()
  7836. * @static
  7837. */
  7838. public static function getClientIps(){
  7839. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7840. return \Illuminate\Http\Request::getClientIps();
  7841. }
  7842. /**
  7843. * Returns the client IP address.
  7844. *
  7845. * This method can read the client IP address from the "X-Forwarded-For" header
  7846. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7847. * header value is a comma+space separated list of IP addresses, the left-most
  7848. * being the original client, and each successive proxy that passed the request
  7849. * adding the IP address where it received the request from.
  7850. *
  7851. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7852. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  7853. * the "client-ip" key.
  7854. *
  7855. * @return string The client IP address
  7856. * @see getClientIps()
  7857. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  7858. * @api
  7859. * @static
  7860. */
  7861. public static function getClientIp(){
  7862. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7863. return \Illuminate\Http\Request::getClientIp();
  7864. }
  7865. /**
  7866. * Returns current script name.
  7867. *
  7868. * @return string
  7869. * @api
  7870. * @static
  7871. */
  7872. public static function getScriptName(){
  7873. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7874. return \Illuminate\Http\Request::getScriptName();
  7875. }
  7876. /**
  7877. * Returns the path being requested relative to the executed script.
  7878. *
  7879. * The path info always starts with a /.
  7880. *
  7881. * Suppose this request is instantiated from /mysite on localhost:
  7882. *
  7883. * * http://localhost/mysite returns an empty string
  7884. * * http://localhost/mysite/about returns '/about'
  7885. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7886. * * http://localhost/mysite/about?var=1 returns '/about'
  7887. *
  7888. * @return string The raw path (i.e. not urldecoded)
  7889. * @api
  7890. * @static
  7891. */
  7892. public static function getPathInfo(){
  7893. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7894. return \Illuminate\Http\Request::getPathInfo();
  7895. }
  7896. /**
  7897. * Returns the root path from which this request is executed.
  7898. *
  7899. * Suppose that an index.php file instantiates this request object:
  7900. *
  7901. * * http://localhost/index.php returns an empty string
  7902. * * http://localhost/index.php/page returns an empty string
  7903. * * http://localhost/web/index.php returns '/web'
  7904. * * http://localhost/we%20b/index.php returns '/we%20b'
  7905. *
  7906. * @return string The raw path (i.e. not urldecoded)
  7907. * @api
  7908. * @static
  7909. */
  7910. public static function getBasePath(){
  7911. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7912. return \Illuminate\Http\Request::getBasePath();
  7913. }
  7914. /**
  7915. * Returns the root URL from which this request is executed.
  7916. *
  7917. * The base URL never ends with a /.
  7918. *
  7919. * This is similar to getBasePath(), except that it also includes the
  7920. * script filename (e.g. index.php) if one exists.
  7921. *
  7922. * @return string The raw URL (i.e. not urldecoded)
  7923. * @api
  7924. * @static
  7925. */
  7926. public static function getBaseUrl(){
  7927. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7928. return \Illuminate\Http\Request::getBaseUrl();
  7929. }
  7930. /**
  7931. * Gets the request's scheme.
  7932. *
  7933. * @return string
  7934. * @api
  7935. * @static
  7936. */
  7937. public static function getScheme(){
  7938. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7939. return \Illuminate\Http\Request::getScheme();
  7940. }
  7941. /**
  7942. * Returns the port on which the request is made.
  7943. *
  7944. * This method can read the client port from the "X-Forwarded-Port" header
  7945. * when trusted proxies were set via "setTrustedProxies()".
  7946. *
  7947. * The "X-Forwarded-Port" header must contain the client port.
  7948. *
  7949. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  7950. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  7951. *
  7952. * @return string
  7953. * @api
  7954. * @static
  7955. */
  7956. public static function getPort(){
  7957. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7958. return \Illuminate\Http\Request::getPort();
  7959. }
  7960. /**
  7961. * Returns the user.
  7962. *
  7963. * @return string|null
  7964. * @static
  7965. */
  7966. public static function getUser(){
  7967. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7968. return \Illuminate\Http\Request::getUser();
  7969. }
  7970. /**
  7971. * Returns the password.
  7972. *
  7973. * @return string|null
  7974. * @static
  7975. */
  7976. public static function getPassword(){
  7977. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7978. return \Illuminate\Http\Request::getPassword();
  7979. }
  7980. /**
  7981. * Gets the user info.
  7982. *
  7983. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  7984. * @static
  7985. */
  7986. public static function getUserInfo(){
  7987. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7988. return \Illuminate\Http\Request::getUserInfo();
  7989. }
  7990. /**
  7991. * Returns the HTTP host being requested.
  7992. *
  7993. * The port name will be appended to the host if it's non-standard.
  7994. *
  7995. * @return string
  7996. * @api
  7997. * @static
  7998. */
  7999. public static function getHttpHost(){
  8000. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8001. return \Illuminate\Http\Request::getHttpHost();
  8002. }
  8003. /**
  8004. * Returns the requested URI (path and query string).
  8005. *
  8006. * @return string The raw URI (i.e. not URI decoded)
  8007. * @api
  8008. * @static
  8009. */
  8010. public static function getRequestUri(){
  8011. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8012. return \Illuminate\Http\Request::getRequestUri();
  8013. }
  8014. /**
  8015. * Gets the scheme and HTTP host.
  8016. *
  8017. * If the URL was called with basic authentication, the user
  8018. * and the password are not added to the generated string.
  8019. *
  8020. * @return string The scheme and HTTP host
  8021. * @static
  8022. */
  8023. public static function getSchemeAndHttpHost(){
  8024. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8025. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  8026. }
  8027. /**
  8028. * Generates a normalized URI (URL) for the Request.
  8029. *
  8030. * @return string A normalized URI (URL) for the Request
  8031. * @see getQueryString()
  8032. * @api
  8033. * @static
  8034. */
  8035. public static function getUri(){
  8036. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8037. return \Illuminate\Http\Request::getUri();
  8038. }
  8039. /**
  8040. * Generates a normalized URI for the given path.
  8041. *
  8042. * @param string $path A path to use instead of the current one
  8043. * @return string The normalized URI for the path
  8044. * @api
  8045. * @static
  8046. */
  8047. public static function getUriForPath($path){
  8048. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8049. return \Illuminate\Http\Request::getUriForPath($path);
  8050. }
  8051. /**
  8052. * Generates the normalized query string for the Request.
  8053. *
  8054. * It builds a normalized query string, where keys/value pairs are alphabetized
  8055. * and have consistent escaping.
  8056. *
  8057. * @return string|null A normalized query string for the Request
  8058. * @api
  8059. * @static
  8060. */
  8061. public static function getQueryString(){
  8062. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8063. return \Illuminate\Http\Request::getQueryString();
  8064. }
  8065. /**
  8066. * Checks whether the request is secure or not.
  8067. *
  8068. * This method can read the client port from the "X-Forwarded-Proto" header
  8069. * when trusted proxies were set via "setTrustedProxies()".
  8070. *
  8071. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8072. *
  8073. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8074. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  8075. * the "client-proto" key.
  8076. *
  8077. * @return bool
  8078. * @api
  8079. * @static
  8080. */
  8081. public static function isSecure(){
  8082. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8083. return \Illuminate\Http\Request::isSecure();
  8084. }
  8085. /**
  8086. * Returns the host name.
  8087. *
  8088. * This method can read the client port from the "X-Forwarded-Host" header
  8089. * when trusted proxies were set via "setTrustedProxies()".
  8090. *
  8091. * The "X-Forwarded-Host" header must contain the client host name.
  8092. *
  8093. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8094. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  8095. *
  8096. * @return string
  8097. * @throws \UnexpectedValueException when the host name is invalid
  8098. * @api
  8099. * @static
  8100. */
  8101. public static function getHost(){
  8102. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8103. return \Illuminate\Http\Request::getHost();
  8104. }
  8105. /**
  8106. * Sets the request method.
  8107. *
  8108. * @param string $method
  8109. * @api
  8110. * @static
  8111. */
  8112. public static function setMethod($method){
  8113. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8114. return \Illuminate\Http\Request::setMethod($method);
  8115. }
  8116. /**
  8117. * Gets the request "intended" method.
  8118. *
  8119. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8120. * then it is used to determine the "real" intended HTTP method.
  8121. *
  8122. * The _method request parameter can also be used to determine the HTTP method,
  8123. * but only if enableHttpMethodParameterOverride() has been called.
  8124. *
  8125. * The method is always an uppercased string.
  8126. *
  8127. * @return string The request method
  8128. * @api
  8129. * @see getRealMethod()
  8130. * @static
  8131. */
  8132. public static function getMethod(){
  8133. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8134. return \Illuminate\Http\Request::getMethod();
  8135. }
  8136. /**
  8137. * Gets the "real" request method.
  8138. *
  8139. * @return string The request method
  8140. * @see getMethod()
  8141. * @static
  8142. */
  8143. public static function getRealMethod(){
  8144. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8145. return \Illuminate\Http\Request::getRealMethod();
  8146. }
  8147. /**
  8148. * Gets the mime type associated with the format.
  8149. *
  8150. * @param string $format The format
  8151. * @return string The associated mime type (null if not found)
  8152. * @api
  8153. * @static
  8154. */
  8155. public static function getMimeType($format){
  8156. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8157. return \Illuminate\Http\Request::getMimeType($format);
  8158. }
  8159. /**
  8160. * Gets the format associated with the mime type.
  8161. *
  8162. * @param string $mimeType The associated mime type
  8163. * @return string|null The format (null if not found)
  8164. * @api
  8165. * @static
  8166. */
  8167. public static function getFormat($mimeType){
  8168. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8169. return \Illuminate\Http\Request::getFormat($mimeType);
  8170. }
  8171. /**
  8172. * Associates a format with mime types.
  8173. *
  8174. * @param string $format The format
  8175. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8176. * @api
  8177. * @static
  8178. */
  8179. public static function setFormat($format, $mimeTypes){
  8180. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8181. return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  8182. }
  8183. /**
  8184. * Gets the request format.
  8185. *
  8186. * Here is the process to determine the format:
  8187. *
  8188. * * format defined by the user (with setRequestFormat())
  8189. * * _format request parameter
  8190. * * $default
  8191. *
  8192. * @param string $default The default format
  8193. * @return string The request format
  8194. * @api
  8195. * @static
  8196. */
  8197. public static function getRequestFormat($default = 'html'){
  8198. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8199. return \Illuminate\Http\Request::getRequestFormat($default);
  8200. }
  8201. /**
  8202. * Sets the request format.
  8203. *
  8204. * @param string $format The request format.
  8205. * @api
  8206. * @static
  8207. */
  8208. public static function setRequestFormat($format){
  8209. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8210. return \Illuminate\Http\Request::setRequestFormat($format);
  8211. }
  8212. /**
  8213. * Gets the format associated with the request.
  8214. *
  8215. * @return string|null The format (null if no content type is present)
  8216. * @api
  8217. * @static
  8218. */
  8219. public static function getContentType(){
  8220. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8221. return \Illuminate\Http\Request::getContentType();
  8222. }
  8223. /**
  8224. * Sets the default locale.
  8225. *
  8226. * @param string $locale
  8227. * @api
  8228. * @static
  8229. */
  8230. public static function setDefaultLocale($locale){
  8231. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8232. return \Illuminate\Http\Request::setDefaultLocale($locale);
  8233. }
  8234. /**
  8235. * Get the default locale.
  8236. *
  8237. * @return string
  8238. * @static
  8239. */
  8240. public static function getDefaultLocale(){
  8241. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8242. return \Illuminate\Http\Request::getDefaultLocale();
  8243. }
  8244. /**
  8245. * Sets the locale.
  8246. *
  8247. * @param string $locale
  8248. * @api
  8249. * @static
  8250. */
  8251. public static function setLocale($locale){
  8252. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8253. return \Illuminate\Http\Request::setLocale($locale);
  8254. }
  8255. /**
  8256. * Get the locale.
  8257. *
  8258. * @return string
  8259. * @static
  8260. */
  8261. public static function getLocale(){
  8262. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8263. return \Illuminate\Http\Request::getLocale();
  8264. }
  8265. /**
  8266. * Checks if the request method is of specified type.
  8267. *
  8268. * @param string $method Uppercase request method (GET, POST etc).
  8269. * @return bool
  8270. * @static
  8271. */
  8272. public static function isMethod($method){
  8273. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8274. return \Illuminate\Http\Request::isMethod($method);
  8275. }
  8276. /**
  8277. * Checks whether the method is safe or not.
  8278. *
  8279. * @return bool
  8280. * @api
  8281. * @static
  8282. */
  8283. public static function isMethodSafe(){
  8284. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8285. return \Illuminate\Http\Request::isMethodSafe();
  8286. }
  8287. /**
  8288. * Returns the request body content.
  8289. *
  8290. * @param bool $asResource If true, a resource will be returned
  8291. * @return string|resource The request body content or a resource to read the body stream.
  8292. * @throws \LogicException
  8293. * @static
  8294. */
  8295. public static function getContent($asResource = false){
  8296. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8297. return \Illuminate\Http\Request::getContent($asResource);
  8298. }
  8299. /**
  8300. * Gets the Etags.
  8301. *
  8302. * @return array The entity tags
  8303. * @static
  8304. */
  8305. public static function getETags(){
  8306. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8307. return \Illuminate\Http\Request::getETags();
  8308. }
  8309. /**
  8310. *
  8311. *
  8312. * @return bool
  8313. * @static
  8314. */
  8315. public static function isNoCache(){
  8316. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8317. return \Illuminate\Http\Request::isNoCache();
  8318. }
  8319. /**
  8320. * Returns the preferred language.
  8321. *
  8322. * @param array $locales An array of ordered available locales
  8323. * @return string|null The preferred locale
  8324. * @api
  8325. * @static
  8326. */
  8327. public static function getPreferredLanguage($locales = null){
  8328. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8329. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  8330. }
  8331. /**
  8332. * Gets a list of languages acceptable by the client browser.
  8333. *
  8334. * @return array Languages ordered in the user browser preferences
  8335. * @api
  8336. * @static
  8337. */
  8338. public static function getLanguages(){
  8339. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8340. return \Illuminate\Http\Request::getLanguages();
  8341. }
  8342. /**
  8343. * Gets a list of charsets acceptable by the client browser.
  8344. *
  8345. * @return array List of charsets in preferable order
  8346. * @api
  8347. * @static
  8348. */
  8349. public static function getCharsets(){
  8350. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8351. return \Illuminate\Http\Request::getCharsets();
  8352. }
  8353. /**
  8354. * Gets a list of encodings acceptable by the client browser.
  8355. *
  8356. * @return array List of encodings in preferable order
  8357. * @static
  8358. */
  8359. public static function getEncodings(){
  8360. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8361. return \Illuminate\Http\Request::getEncodings();
  8362. }
  8363. /**
  8364. * Gets a list of content types acceptable by the client browser.
  8365. *
  8366. * @return array List of content types in preferable order
  8367. * @api
  8368. * @static
  8369. */
  8370. public static function getAcceptableContentTypes(){
  8371. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8372. return \Illuminate\Http\Request::getAcceptableContentTypes();
  8373. }
  8374. /**
  8375. * Returns true if the request is a XMLHttpRequest.
  8376. *
  8377. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8378. * It is known to work with common JavaScript frameworks:
  8379. *
  8380. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8381. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8382. * @api
  8383. * @static
  8384. */
  8385. public static function isXmlHttpRequest(){
  8386. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8387. return \Illuminate\Http\Request::isXmlHttpRequest();
  8388. }
  8389. }
  8390. class Response extends \Illuminate\Support\Facades\Response{
  8391. /**
  8392. * Return a new response from the application.
  8393. *
  8394. * @param string $content
  8395. * @param int $status
  8396. * @param array $headers
  8397. * @return \Symfony\Component\HttpFoundation\Response
  8398. * @static
  8399. */
  8400. public static function make($content = '', $status = 200, $headers = array()){
  8401. return \Illuminate\Routing\ResponseFactory::make($content, $status, $headers);
  8402. }
  8403. /**
  8404. * Return a new view response from the application.
  8405. *
  8406. * @param string $view
  8407. * @param array $data
  8408. * @param int $status
  8409. * @param array $headers
  8410. * @return \Symfony\Component\HttpFoundation\Response
  8411. * @static
  8412. */
  8413. public static function view($view, $data = array(), $status = 200, $headers = array()){
  8414. return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
  8415. }
  8416. /**
  8417. * Return a new JSON response from the application.
  8418. *
  8419. * @param string|array $data
  8420. * @param int $status
  8421. * @param array $headers
  8422. * @param int $options
  8423. * @return \Symfony\Component\HttpFoundation\Response
  8424. * @static
  8425. */
  8426. public static function json($data = array(), $status = 200, $headers = array(), $options = 0){
  8427. return \Illuminate\Routing\ResponseFactory::json($data, $status, $headers, $options);
  8428. }
  8429. /**
  8430. * Return a new JSONP response from the application.
  8431. *
  8432. * @param string $callback
  8433. * @param string|array $data
  8434. * @param int $status
  8435. * @param array $headers
  8436. * @param int $options
  8437. * @return \Symfony\Component\HttpFoundation\Response
  8438. * @static
  8439. */
  8440. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0){
  8441. return \Illuminate\Routing\ResponseFactory::jsonp($callback, $data, $status, $headers, $options);
  8442. }
  8443. /**
  8444. * Return a new streamed response from the application.
  8445. *
  8446. * @param \Closure $callback
  8447. * @param int $status
  8448. * @param array $headers
  8449. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  8450. * @static
  8451. */
  8452. public static function stream($callback, $status = 200, $headers = array()){
  8453. return \Illuminate\Routing\ResponseFactory::stream($callback, $status, $headers);
  8454. }
  8455. /**
  8456. * Create a new file download response.
  8457. *
  8458. * @param \SplFileInfo|string $file
  8459. * @param string $name
  8460. * @param array $headers
  8461. * @param null|string $disposition
  8462. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  8463. * @static
  8464. */
  8465. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment'){
  8466. return \Illuminate\Routing\ResponseFactory::download($file, $name, $headers, $disposition);
  8467. }
  8468. /**
  8469. * Create a new redirect response to the given path.
  8470. *
  8471. * @param string $path
  8472. * @param int $status
  8473. * @param array $headers
  8474. * @param bool $secure
  8475. * @return \Symfony\Component\HttpFoundation\Response
  8476. * @static
  8477. */
  8478. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null){
  8479. return \Illuminate\Routing\ResponseFactory::redirectTo($path, $status, $headers, $secure);
  8480. }
  8481. /**
  8482. * Create a new redirect response to a named route.
  8483. *
  8484. * @param string $route
  8485. * @param array $parameters
  8486. * @param int $status
  8487. * @param array $headers
  8488. * @return \Symfony\Component\HttpFoundation\Response
  8489. * @static
  8490. */
  8491. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array()){
  8492. return \Illuminate\Routing\ResponseFactory::redirectToRoute($route, $parameters, $status, $headers);
  8493. }
  8494. /**
  8495. * Create a new redirect response to a controller action.
  8496. *
  8497. * @param string $action
  8498. * @param array $parameters
  8499. * @param int $status
  8500. * @param array $headers
  8501. * @return \Symfony\Component\HttpFoundation\Response
  8502. * @static
  8503. */
  8504. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array()){
  8505. return \Illuminate\Routing\ResponseFactory::redirectToAction($action, $parameters, $status, $headers);
  8506. }
  8507. /**
  8508. * Create a new redirect response, while putting the current URL in the session.
  8509. *
  8510. * @param string $path
  8511. * @param int $status
  8512. * @param array $headers
  8513. * @param bool $secure
  8514. * @return \Symfony\Component\HttpFoundation\Response
  8515. * @static
  8516. */
  8517. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null){
  8518. return \Illuminate\Routing\ResponseFactory::redirectGuest($path, $status, $headers, $secure);
  8519. }
  8520. /**
  8521. * Create a new redirect response to the previously intended location.
  8522. *
  8523. * @param string $default
  8524. * @param int $status
  8525. * @param array $headers
  8526. * @param bool $secure
  8527. * @return \Symfony\Component\HttpFoundation\Response
  8528. * @static
  8529. */
  8530. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null){
  8531. return \Illuminate\Routing\ResponseFactory::redirectToIntended($default, $status, $headers, $secure);
  8532. }
  8533. /**
  8534. * Register a custom macro.
  8535. *
  8536. * @param string $name
  8537. * @param callable $macro
  8538. * @return void
  8539. * @static
  8540. */
  8541. public static function macro($name, $macro){
  8542. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  8543. }
  8544. /**
  8545. * Checks if macro is registered.
  8546. *
  8547. * @param string $name
  8548. * @return bool
  8549. * @static
  8550. */
  8551. public static function hasMacro($name){
  8552. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  8553. }
  8554. }
  8555. class Route extends \Illuminate\Support\Facades\Route{
  8556. /**
  8557. * Register a new GET route with the router.
  8558. *
  8559. * @param string $uri
  8560. * @param \Closure|array|string $action
  8561. * @return \Illuminate\Routing\Route
  8562. * @static
  8563. */
  8564. public static function get($uri, $action){
  8565. return \Illuminate\Routing\Router::get($uri, $action);
  8566. }
  8567. /**
  8568. * Register a new POST route with the router.
  8569. *
  8570. * @param string $uri
  8571. * @param \Closure|array|string $action
  8572. * @return \Illuminate\Routing\Route
  8573. * @static
  8574. */
  8575. public static function post($uri, $action){
  8576. return \Illuminate\Routing\Router::post($uri, $action);
  8577. }
  8578. /**
  8579. * Register a new PUT route with the router.
  8580. *
  8581. * @param string $uri
  8582. * @param \Closure|array|string $action
  8583. * @return \Illuminate\Routing\Route
  8584. * @static
  8585. */
  8586. public static function put($uri, $action){
  8587. return \Illuminate\Routing\Router::put($uri, $action);
  8588. }
  8589. /**
  8590. * Register a new PATCH route with the router.
  8591. *
  8592. * @param string $uri
  8593. * @param \Closure|array|string $action
  8594. * @return \Illuminate\Routing\Route
  8595. * @static
  8596. */
  8597. public static function patch($uri, $action){
  8598. return \Illuminate\Routing\Router::patch($uri, $action);
  8599. }
  8600. /**
  8601. * Register a new DELETE route with the router.
  8602. *
  8603. * @param string $uri
  8604. * @param \Closure|array|string $action
  8605. * @return \Illuminate\Routing\Route
  8606. * @static
  8607. */
  8608. public static function delete($uri, $action){
  8609. return \Illuminate\Routing\Router::delete($uri, $action);
  8610. }
  8611. /**
  8612. * Register a new OPTIONS route with the router.
  8613. *
  8614. * @param string $uri
  8615. * @param \Closure|array|string $action
  8616. * @return \Illuminate\Routing\Route
  8617. * @static
  8618. */
  8619. public static function options($uri, $action){
  8620. return \Illuminate\Routing\Router::options($uri, $action);
  8621. }
  8622. /**
  8623. * Register a new route responding to all verbs.
  8624. *
  8625. * @param string $uri
  8626. * @param \Closure|array|string $action
  8627. * @return \Illuminate\Routing\Route
  8628. * @static
  8629. */
  8630. public static function any($uri, $action){
  8631. return \Illuminate\Routing\Router::any($uri, $action);
  8632. }
  8633. /**
  8634. * Register a new route with the given verbs.
  8635. *
  8636. * @param array|string $methods
  8637. * @param string $uri
  8638. * @param \Closure|array|string $action
  8639. * @return \Illuminate\Routing\Route
  8640. * @static
  8641. */
  8642. public static function match($methods, $uri, $action){
  8643. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  8644. }
  8645. /**
  8646. * Register an array of controllers with wildcard routing.
  8647. *
  8648. * @param array $controllers
  8649. * @return void
  8650. * @static
  8651. */
  8652. public static function controllers($controllers){
  8653. \Illuminate\Routing\Router::controllers($controllers);
  8654. }
  8655. /**
  8656. * Route a controller to a URI with wildcard routing.
  8657. *
  8658. * @param string $uri
  8659. * @param string $controller
  8660. * @param array $names
  8661. * @return void
  8662. * @static
  8663. */
  8664. public static function controller($uri, $controller, $names = array()){
  8665. \Illuminate\Routing\Router::controller($uri, $controller, $names);
  8666. }
  8667. /**
  8668. * Register an array of resource controllers.
  8669. *
  8670. * @param array $resources
  8671. * @return void
  8672. * @static
  8673. */
  8674. public static function resources($resources){
  8675. \Illuminate\Routing\Router::resources($resources);
  8676. }
  8677. /**
  8678. * Route a resource to a controller.
  8679. *
  8680. * @param string $name
  8681. * @param string $controller
  8682. * @param array $options
  8683. * @return void
  8684. * @static
  8685. */
  8686. public static function resource($name, $controller, $options = array()){
  8687. \Illuminate\Routing\Router::resource($name, $controller, $options);
  8688. }
  8689. /**
  8690. * Create a route group with shared attributes.
  8691. *
  8692. * @param array $attributes
  8693. * @param \Closure $callback
  8694. * @return void
  8695. * @static
  8696. */
  8697. public static function group($attributes, $callback){
  8698. \Illuminate\Routing\Router::group($attributes, $callback);
  8699. }
  8700. /**
  8701. * Merge the given array with the last group stack.
  8702. *
  8703. * @param array $new
  8704. * @return array
  8705. * @static
  8706. */
  8707. public static function mergeWithLastGroup($new){
  8708. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  8709. }
  8710. /**
  8711. * Merge the given group attributes.
  8712. *
  8713. * @param array $new
  8714. * @param array $old
  8715. * @return array
  8716. * @static
  8717. */
  8718. public static function mergeGroup($new, $old){
  8719. return \Illuminate\Routing\Router::mergeGroup($new, $old);
  8720. }
  8721. /**
  8722. * Get the prefix from the last group on the stack.
  8723. *
  8724. * @return string
  8725. * @static
  8726. */
  8727. public static function getLastGroupPrefix(){
  8728. return \Illuminate\Routing\Router::getLastGroupPrefix();
  8729. }
  8730. /**
  8731. * Dispatch the request to the application.
  8732. *
  8733. * @param \Illuminate\Http\Request $request
  8734. * @return \Illuminate\Http\Response
  8735. * @static
  8736. */
  8737. public static function dispatch($request){
  8738. return \Illuminate\Routing\Router::dispatch($request);
  8739. }
  8740. /**
  8741. * Dispatch the request to a route and return the response.
  8742. *
  8743. * @param \Illuminate\Http\Request $request
  8744. * @return mixed
  8745. * @static
  8746. */
  8747. public static function dispatchToRoute($request){
  8748. return \Illuminate\Routing\Router::dispatchToRoute($request);
  8749. }
  8750. /**
  8751. * Gather the middleware for the given route.
  8752. *
  8753. * @param \Illuminate\Routing\Route $route
  8754. * @return array
  8755. * @static
  8756. */
  8757. public static function gatherRouteMiddlewares($route){
  8758. return \Illuminate\Routing\Router::gatherRouteMiddlewares($route);
  8759. }
  8760. /**
  8761. * Register a route matched event listener.
  8762. *
  8763. * @param string|callable $callback
  8764. * @return void
  8765. * @static
  8766. */
  8767. public static function matched($callback){
  8768. \Illuminate\Routing\Router::matched($callback);
  8769. }
  8770. /**
  8771. * Register a new "before" filter with the router.
  8772. *
  8773. * @param string|callable $callback
  8774. * @return void
  8775. * @static
  8776. */
  8777. public static function before($callback){
  8778. \Illuminate\Routing\Router::before($callback);
  8779. }
  8780. /**
  8781. * Register a new "after" filter with the router.
  8782. *
  8783. * @param string|callable $callback
  8784. * @return void
  8785. * @static
  8786. */
  8787. public static function after($callback){
  8788. \Illuminate\Routing\Router::after($callback);
  8789. }
  8790. /**
  8791. * Get all of the defined middleware short-hand names.
  8792. *
  8793. * @return array
  8794. * @static
  8795. */
  8796. public static function getMiddleware(){
  8797. return \Illuminate\Routing\Router::getMiddleware();
  8798. }
  8799. /**
  8800. * Register a short-hand name for a middleware.
  8801. *
  8802. * @param string $name
  8803. * @param string $class
  8804. * @return $this
  8805. * @static
  8806. */
  8807. public static function middleware($name, $class){
  8808. return \Illuminate\Routing\Router::middleware($name, $class);
  8809. }
  8810. /**
  8811. * Register a new filter with the router.
  8812. *
  8813. * @param string $name
  8814. * @param string|callable $callback
  8815. * @return void
  8816. * @static
  8817. */
  8818. public static function filter($name, $callback){
  8819. \Illuminate\Routing\Router::filter($name, $callback);
  8820. }
  8821. /**
  8822. * Register a pattern-based filter with the router.
  8823. *
  8824. * @param string $pattern
  8825. * @param string $name
  8826. * @param array|null $methods
  8827. * @return void
  8828. * @static
  8829. */
  8830. public static function when($pattern, $name, $methods = null){
  8831. \Illuminate\Routing\Router::when($pattern, $name, $methods);
  8832. }
  8833. /**
  8834. * Register a regular expression based filter with the router.
  8835. *
  8836. * @param string $pattern
  8837. * @param string $name
  8838. * @param array|null $methods
  8839. * @return void
  8840. * @static
  8841. */
  8842. public static function whenRegex($pattern, $name, $methods = null){
  8843. \Illuminate\Routing\Router::whenRegex($pattern, $name, $methods);
  8844. }
  8845. /**
  8846. * Register a model binder for a wildcard.
  8847. *
  8848. * @param string $key
  8849. * @param string $class
  8850. * @param \Closure|null $callback
  8851. * @return void
  8852. * @throws NotFoundHttpException
  8853. * @static
  8854. */
  8855. public static function model($key, $class, $callback = null){
  8856. \Illuminate\Routing\Router::model($key, $class, $callback);
  8857. }
  8858. /**
  8859. * Add a new route parameter binder.
  8860. *
  8861. * @param string $key
  8862. * @param string|callable $binder
  8863. * @return void
  8864. * @static
  8865. */
  8866. public static function bind($key, $binder){
  8867. \Illuminate\Routing\Router::bind($key, $binder);
  8868. }
  8869. /**
  8870. * Create a class based binding using the IoC container.
  8871. *
  8872. * @param string $binding
  8873. * @return \Closure
  8874. * @static
  8875. */
  8876. public static function createClassBinding($binding){
  8877. return \Illuminate\Routing\Router::createClassBinding($binding);
  8878. }
  8879. /**
  8880. * Set a global where pattern on all routes.
  8881. *
  8882. * @param string $key
  8883. * @param string $pattern
  8884. * @return void
  8885. * @static
  8886. */
  8887. public static function pattern($key, $pattern){
  8888. \Illuminate\Routing\Router::pattern($key, $pattern);
  8889. }
  8890. /**
  8891. * Set a group of global where patterns on all routes.
  8892. *
  8893. * @param array $patterns
  8894. * @return void
  8895. * @static
  8896. */
  8897. public static function patterns($patterns){
  8898. \Illuminate\Routing\Router::patterns($patterns);
  8899. }
  8900. /**
  8901. * Call the given route's before filters.
  8902. *
  8903. * @param \Illuminate\Routing\Route $route
  8904. * @param \Illuminate\Http\Request $request
  8905. * @return mixed
  8906. * @static
  8907. */
  8908. public static function callRouteBefore($route, $request){
  8909. return \Illuminate\Routing\Router::callRouteBefore($route, $request);
  8910. }
  8911. /**
  8912. * Find the patterned filters matching a request.
  8913. *
  8914. * @param \Illuminate\Http\Request $request
  8915. * @return array
  8916. * @static
  8917. */
  8918. public static function findPatternFilters($request){
  8919. return \Illuminate\Routing\Router::findPatternFilters($request);
  8920. }
  8921. /**
  8922. * Call the given route's after filters.
  8923. *
  8924. * @param \Illuminate\Routing\Route $route
  8925. * @param \Illuminate\Http\Request $request
  8926. * @param \Illuminate\Http\Response $response
  8927. * @return mixed
  8928. * @static
  8929. */
  8930. public static function callRouteAfter($route, $request, $response){
  8931. return \Illuminate\Routing\Router::callRouteAfter($route, $request, $response);
  8932. }
  8933. /**
  8934. * Call the given route filter.
  8935. *
  8936. * @param string $filter
  8937. * @param array $parameters
  8938. * @param \Illuminate\Routing\Route $route
  8939. * @param \Illuminate\Http\Request $request
  8940. * @param \Illuminate\Http\Response|null $response
  8941. * @return mixed
  8942. * @static
  8943. */
  8944. public static function callRouteFilter($filter, $parameters, $route, $request, $response = null){
  8945. return \Illuminate\Routing\Router::callRouteFilter($filter, $parameters, $route, $request, $response);
  8946. }
  8947. /**
  8948. * Determine if the router currently has a group stack.
  8949. *
  8950. * @return bool
  8951. * @static
  8952. */
  8953. public static function hasGroupStack(){
  8954. return \Illuminate\Routing\Router::hasGroupStack();
  8955. }
  8956. /**
  8957. * Get the current group stack for the router.
  8958. *
  8959. * @return array
  8960. * @static
  8961. */
  8962. public static function getGroupStack(){
  8963. return \Illuminate\Routing\Router::getGroupStack();
  8964. }
  8965. /**
  8966. * Get a route parameter for the current route.
  8967. *
  8968. * @param string $key
  8969. * @param string $default
  8970. * @return mixed
  8971. * @static
  8972. */
  8973. public static function input($key, $default = null){
  8974. return \Illuminate\Routing\Router::input($key, $default);
  8975. }
  8976. /**
  8977. * Get the currently dispatched route instance.
  8978. *
  8979. * @return \Illuminate\Routing\Route
  8980. * @static
  8981. */
  8982. public static function getCurrentRoute(){
  8983. return \Illuminate\Routing\Router::getCurrentRoute();
  8984. }
  8985. /**
  8986. * Get the currently dispatched route instance.
  8987. *
  8988. * @return \Illuminate\Routing\Route
  8989. * @static
  8990. */
  8991. public static function current(){
  8992. return \Illuminate\Routing\Router::current();
  8993. }
  8994. /**
  8995. * Check if a route with the given name exists.
  8996. *
  8997. * @param string $name
  8998. * @return bool
  8999. * @static
  9000. */
  9001. public static function has($name){
  9002. return \Illuminate\Routing\Router::has($name);
  9003. }
  9004. /**
  9005. * Get the current route name.
  9006. *
  9007. * @return string|null
  9008. * @static
  9009. */
  9010. public static function currentRouteName(){
  9011. return \Illuminate\Routing\Router::currentRouteName();
  9012. }
  9013. /**
  9014. * Alias for the "currentRouteNamed" method.
  9015. *
  9016. * @param mixed string
  9017. * @return bool
  9018. * @static
  9019. */
  9020. public static function is(){
  9021. return \Illuminate\Routing\Router::is();
  9022. }
  9023. /**
  9024. * Determine if the current route matches a given name.
  9025. *
  9026. * @param string $name
  9027. * @return bool
  9028. * @static
  9029. */
  9030. public static function currentRouteNamed($name){
  9031. return \Illuminate\Routing\Router::currentRouteNamed($name);
  9032. }
  9033. /**
  9034. * Get the current route action.
  9035. *
  9036. * @return string|null
  9037. * @static
  9038. */
  9039. public static function currentRouteAction(){
  9040. return \Illuminate\Routing\Router::currentRouteAction();
  9041. }
  9042. /**
  9043. * Alias for the "currentRouteUses" method.
  9044. *
  9045. * @param mixed string
  9046. * @return bool
  9047. * @static
  9048. */
  9049. public static function uses(){
  9050. return \Illuminate\Routing\Router::uses();
  9051. }
  9052. /**
  9053. * Determine if the current route action matches a given action.
  9054. *
  9055. * @param string $action
  9056. * @return bool
  9057. * @static
  9058. */
  9059. public static function currentRouteUses($action){
  9060. return \Illuminate\Routing\Router::currentRouteUses($action);
  9061. }
  9062. /**
  9063. * Get the request currently being dispatched.
  9064. *
  9065. * @return \Illuminate\Http\Request
  9066. * @static
  9067. */
  9068. public static function getCurrentRequest(){
  9069. return \Illuminate\Routing\Router::getCurrentRequest();
  9070. }
  9071. /**
  9072. * Get the underlying route collection.
  9073. *
  9074. * @return \Illuminate\Routing\RouteCollection
  9075. * @static
  9076. */
  9077. public static function getRoutes(){
  9078. return \Illuminate\Routing\Router::getRoutes();
  9079. }
  9080. /**
  9081. * Set the route collection instance.
  9082. *
  9083. * @param \Illuminate\Routing\RouteCollection $routes
  9084. * @return void
  9085. * @static
  9086. */
  9087. public static function setRoutes($routes){
  9088. \Illuminate\Routing\Router::setRoutes($routes);
  9089. }
  9090. /**
  9091. * Get the global "where" patterns.
  9092. *
  9093. * @return array
  9094. * @static
  9095. */
  9096. public static function getPatterns(){
  9097. return \Illuminate\Routing\Router::getPatterns();
  9098. }
  9099. /**
  9100. * Register a custom macro.
  9101. *
  9102. * @param string $name
  9103. * @param callable $macro
  9104. * @return void
  9105. * @static
  9106. */
  9107. public static function macro($name, $macro){
  9108. \Illuminate\Routing\Router::macro($name, $macro);
  9109. }
  9110. /**
  9111. * Checks if macro is registered.
  9112. *
  9113. * @param string $name
  9114. * @return bool
  9115. * @static
  9116. */
  9117. public static function hasMacro($name){
  9118. return \Illuminate\Routing\Router::hasMacro($name);
  9119. }
  9120. }
  9121. class Schema extends \Illuminate\Support\Facades\Schema{
  9122. /**
  9123. * Determine if the given table exists.
  9124. *
  9125. * @param string $table
  9126. * @return bool
  9127. * @static
  9128. */
  9129. public static function hasTable($table){
  9130. return \Illuminate\Database\Schema\Builder::hasTable($table);
  9131. }
  9132. /**
  9133. * Determine if the given table has a given column.
  9134. *
  9135. * @param string $table
  9136. * @param string $column
  9137. * @return bool
  9138. * @static
  9139. */
  9140. public static function hasColumn($table, $column){
  9141. return \Illuminate\Database\Schema\Builder::hasColumn($table, $column);
  9142. }
  9143. /**
  9144. * Get the column listing for a given table.
  9145. *
  9146. * @param string $table
  9147. * @return array
  9148. * @static
  9149. */
  9150. public static function getColumnListing($table){
  9151. return \Illuminate\Database\Schema\Builder::getColumnListing($table);
  9152. }
  9153. /**
  9154. * Modify a table on the schema.
  9155. *
  9156. * @param string $table
  9157. * @param \Closure $callback
  9158. * @return \Illuminate\Database\Schema\Blueprint
  9159. * @static
  9160. */
  9161. public static function table($table, $callback){
  9162. return \Illuminate\Database\Schema\Builder::table($table, $callback);
  9163. }
  9164. /**
  9165. * Create a new table on the schema.
  9166. *
  9167. * @param string $table
  9168. * @param \Closure $callback
  9169. * @return \Illuminate\Database\Schema\Blueprint
  9170. * @static
  9171. */
  9172. public static function create($table, $callback){
  9173. return \Illuminate\Database\Schema\Builder::create($table, $callback);
  9174. }
  9175. /**
  9176. * Drop a table from the schema.
  9177. *
  9178. * @param string $table
  9179. * @return \Illuminate\Database\Schema\Blueprint
  9180. * @static
  9181. */
  9182. public static function drop($table){
  9183. return \Illuminate\Database\Schema\Builder::drop($table);
  9184. }
  9185. /**
  9186. * Drop a table from the schema if it exists.
  9187. *
  9188. * @param string $table
  9189. * @return \Illuminate\Database\Schema\Blueprint
  9190. * @static
  9191. */
  9192. public static function dropIfExists($table){
  9193. return \Illuminate\Database\Schema\Builder::dropIfExists($table);
  9194. }
  9195. /**
  9196. * Rename a table on the schema.
  9197. *
  9198. * @param string $from
  9199. * @param string $to
  9200. * @return \Illuminate\Database\Schema\Blueprint
  9201. * @static
  9202. */
  9203. public static function rename($from, $to){
  9204. return \Illuminate\Database\Schema\Builder::rename($from, $to);
  9205. }
  9206. /**
  9207. * Get the database connection instance.
  9208. *
  9209. * @return \Illuminate\Database\Connection
  9210. * @static
  9211. */
  9212. public static function getConnection(){
  9213. return \Illuminate\Database\Schema\Builder::getConnection();
  9214. }
  9215. /**
  9216. * Set the database connection instance.
  9217. *
  9218. * @param \Illuminate\Database\Connection
  9219. * @return $this
  9220. * @static
  9221. */
  9222. public static function setConnection($connection){
  9223. return \Illuminate\Database\Schema\Builder::setConnection($connection);
  9224. }
  9225. /**
  9226. * Set the Schema Blueprint resolver callback.
  9227. *
  9228. * @param \Closure $resolver
  9229. * @return void
  9230. * @static
  9231. */
  9232. public static function blueprintResolver($resolver){
  9233. \Illuminate\Database\Schema\Builder::blueprintResolver($resolver);
  9234. }
  9235. }
  9236. class Session extends \Illuminate\Support\Facades\Session{
  9237. /**
  9238. * Get the session configuration.
  9239. *
  9240. * @return array
  9241. * @static
  9242. */
  9243. public static function getSessionConfig(){
  9244. return \Illuminate\Session\SessionManager::getSessionConfig();
  9245. }
  9246. /**
  9247. * Get the default session driver name.
  9248. *
  9249. * @return string
  9250. * @static
  9251. */
  9252. public static function getDefaultDriver(){
  9253. return \Illuminate\Session\SessionManager::getDefaultDriver();
  9254. }
  9255. /**
  9256. * Set the default session driver name.
  9257. *
  9258. * @param string $name
  9259. * @return void
  9260. * @static
  9261. */
  9262. public static function setDefaultDriver($name){
  9263. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  9264. }
  9265. /**
  9266. * Get a driver instance.
  9267. *
  9268. * @param string $driver
  9269. * @return mixed
  9270. * @static
  9271. */
  9272. public static function driver($driver = null){
  9273. //Method inherited from \Illuminate\Support\Manager
  9274. return \Illuminate\Session\SessionManager::driver($driver);
  9275. }
  9276. /**
  9277. * Register a custom driver creator Closure.
  9278. *
  9279. * @param string $driver
  9280. * @param \Closure $callback
  9281. * @return $this
  9282. * @static
  9283. */
  9284. public static function extend($driver, $callback){
  9285. //Method inherited from \Illuminate\Support\Manager
  9286. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  9287. }
  9288. /**
  9289. * Get all of the created "drivers".
  9290. *
  9291. * @return array
  9292. * @static
  9293. */
  9294. public static function getDrivers(){
  9295. //Method inherited from \Illuminate\Support\Manager
  9296. return \Illuminate\Session\SessionManager::getDrivers();
  9297. }
  9298. /**
  9299. * Starts the session storage.
  9300. *
  9301. * @return bool True if session started.
  9302. * @throws \RuntimeException If session fails to start.
  9303. * @api
  9304. * @static
  9305. */
  9306. public static function start(){
  9307. return \Illuminate\Session\Store::start();
  9308. }
  9309. /**
  9310. * Returns the session ID.
  9311. *
  9312. * @return string The session ID.
  9313. * @api
  9314. * @static
  9315. */
  9316. public static function getId(){
  9317. return \Illuminate\Session\Store::getId();
  9318. }
  9319. /**
  9320. * Sets the session ID.
  9321. *
  9322. * @param string $id
  9323. * @api
  9324. * @static
  9325. */
  9326. public static function setId($id){
  9327. return \Illuminate\Session\Store::setId($id);
  9328. }
  9329. /**
  9330. * Determine if this is a valid session ID.
  9331. *
  9332. * @param string $id
  9333. * @return bool
  9334. * @static
  9335. */
  9336. public static function isValidId($id){
  9337. return \Illuminate\Session\Store::isValidId($id);
  9338. }
  9339. /**
  9340. * Returns the session name.
  9341. *
  9342. * @return mixed The session name.
  9343. * @api
  9344. * @static
  9345. */
  9346. public static function getName(){
  9347. return \Illuminate\Session\Store::getName();
  9348. }
  9349. /**
  9350. * Sets the session name.
  9351. *
  9352. * @param string $name
  9353. * @api
  9354. * @static
  9355. */
  9356. public static function setName($name){
  9357. return \Illuminate\Session\Store::setName($name);
  9358. }
  9359. /**
  9360. * Invalidates the current session.
  9361. *
  9362. * Clears all session attributes and flashes and regenerates the
  9363. * session and deletes the old session from persistence.
  9364. *
  9365. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  9366. * will leave the system settings unchanged, 0 sets the cookie
  9367. * to expire with browser session. Time is in seconds, and is
  9368. * not a Unix timestamp.
  9369. * @return bool True if session invalidated, false if error.
  9370. * @api
  9371. * @static
  9372. */
  9373. public static function invalidate($lifetime = null){
  9374. return \Illuminate\Session\Store::invalidate($lifetime);
  9375. }
  9376. /**
  9377. * Migrates the current session to a new session id while maintaining all
  9378. * session attributes.
  9379. *
  9380. * @param bool $destroy Whether to delete the old session or leave it to garbage collection.
  9381. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  9382. * will leave the system settings unchanged, 0 sets the cookie
  9383. * to expire with browser session. Time is in seconds, and is
  9384. * not a Unix timestamp.
  9385. * @return bool True if session migrated, false if error.
  9386. * @api
  9387. * @static
  9388. */
  9389. public static function migrate($destroy = false, $lifetime = null){
  9390. return \Illuminate\Session\Store::migrate($destroy, $lifetime);
  9391. }
  9392. /**
  9393. * Generate a new session identifier.
  9394. *
  9395. * @param bool $destroy
  9396. * @return bool
  9397. * @static
  9398. */
  9399. public static function regenerate($destroy = false){
  9400. return \Illuminate\Session\Store::regenerate($destroy);
  9401. }
  9402. /**
  9403. * Force the session to be saved and closed.
  9404. *
  9405. * This method is generally not required for real sessions as
  9406. * the session will be automatically saved at the end of
  9407. * code execution.
  9408. *
  9409. * @static
  9410. */
  9411. public static function save(){
  9412. return \Illuminate\Session\Store::save();
  9413. }
  9414. /**
  9415. * Age the flash data for the session.
  9416. *
  9417. * @return void
  9418. * @static
  9419. */
  9420. public static function ageFlashData(){
  9421. \Illuminate\Session\Store::ageFlashData();
  9422. }
  9423. /**
  9424. * Checks if an attribute is defined.
  9425. *
  9426. * @param string $name The attribute name
  9427. * @return bool true if the attribute is defined, false otherwise
  9428. * @api
  9429. * @static
  9430. */
  9431. public static function has($name){
  9432. return \Illuminate\Session\Store::has($name);
  9433. }
  9434. /**
  9435. * Returns an attribute.
  9436. *
  9437. * @param string $name The attribute name
  9438. * @param mixed $default The default value if not found.
  9439. * @return mixed
  9440. * @api
  9441. * @static
  9442. */
  9443. public static function get($name, $default = null){
  9444. return \Illuminate\Session\Store::get($name, $default);
  9445. }
  9446. /**
  9447. * Get the value of a given key and then forget it.
  9448. *
  9449. * @param string $key
  9450. * @param string $default
  9451. * @return mixed
  9452. * @static
  9453. */
  9454. public static function pull($key, $default = null){
  9455. return \Illuminate\Session\Store::pull($key, $default);
  9456. }
  9457. /**
  9458. * Determine if the session contains old input.
  9459. *
  9460. * @param string $key
  9461. * @return bool
  9462. * @static
  9463. */
  9464. public static function hasOldInput($key = null){
  9465. return \Illuminate\Session\Store::hasOldInput($key);
  9466. }
  9467. /**
  9468. * Get the requested item from the flashed input array.
  9469. *
  9470. * @param string $key
  9471. * @param mixed $default
  9472. * @return mixed
  9473. * @static
  9474. */
  9475. public static function getOldInput($key = null, $default = null){
  9476. return \Illuminate\Session\Store::getOldInput($key, $default);
  9477. }
  9478. /**
  9479. * Sets an attribute.
  9480. *
  9481. * @param string $name
  9482. * @param mixed $value
  9483. * @api
  9484. * @static
  9485. */
  9486. public static function set($name, $value){
  9487. return \Illuminate\Session\Store::set($name, $value);
  9488. }
  9489. /**
  9490. * Put a key / value pair or array of key / value pairs in the session.
  9491. *
  9492. * @param string|array $key
  9493. * @param mixed|null $value
  9494. * @return void
  9495. * @static
  9496. */
  9497. public static function put($key, $value = null){
  9498. \Illuminate\Session\Store::put($key, $value);
  9499. }
  9500. /**
  9501. * Push a value onto a session array.
  9502. *
  9503. * @param string $key
  9504. * @param mixed $value
  9505. * @return void
  9506. * @static
  9507. */
  9508. public static function push($key, $value){
  9509. \Illuminate\Session\Store::push($key, $value);
  9510. }
  9511. /**
  9512. * Flash a key / value pair to the session.
  9513. *
  9514. * @param string $key
  9515. * @param mixed $value
  9516. * @return void
  9517. * @static
  9518. */
  9519. public static function flash($key, $value){
  9520. \Illuminate\Session\Store::flash($key, $value);
  9521. }
  9522. /**
  9523. * Flash an input array to the session.
  9524. *
  9525. * @param array $value
  9526. * @return void
  9527. * @static
  9528. */
  9529. public static function flashInput($value){
  9530. \Illuminate\Session\Store::flashInput($value);
  9531. }
  9532. /**
  9533. * Reflash all of the session flash data.
  9534. *
  9535. * @return void
  9536. * @static
  9537. */
  9538. public static function reflash(){
  9539. \Illuminate\Session\Store::reflash();
  9540. }
  9541. /**
  9542. * Reflash a subset of the current flash data.
  9543. *
  9544. * @param array|mixed $keys
  9545. * @return void
  9546. * @static
  9547. */
  9548. public static function keep($keys = null){
  9549. \Illuminate\Session\Store::keep($keys);
  9550. }
  9551. /**
  9552. * Returns attributes.
  9553. *
  9554. * @return array Attributes
  9555. * @api
  9556. * @static
  9557. */
  9558. public static function all(){
  9559. return \Illuminate\Session\Store::all();
  9560. }
  9561. /**
  9562. * Sets attributes.
  9563. *
  9564. * @param array $attributes Attributes
  9565. * @static
  9566. */
  9567. public static function replace($attributes){
  9568. return \Illuminate\Session\Store::replace($attributes);
  9569. }
  9570. /**
  9571. * Removes an attribute.
  9572. *
  9573. * @param string $name
  9574. * @return mixed The removed value or null when it does not exist
  9575. * @api
  9576. * @static
  9577. */
  9578. public static function remove($name){
  9579. return \Illuminate\Session\Store::remove($name);
  9580. }
  9581. /**
  9582. * Remove an item from the session.
  9583. *
  9584. * @param string $key
  9585. * @return void
  9586. * @static
  9587. */
  9588. public static function forget($key){
  9589. \Illuminate\Session\Store::forget($key);
  9590. }
  9591. /**
  9592. * Clears all attributes.
  9593. *
  9594. * @api
  9595. * @static
  9596. */
  9597. public static function clear(){
  9598. return \Illuminate\Session\Store::clear();
  9599. }
  9600. /**
  9601. * Remove all of the items from the session.
  9602. *
  9603. * @return void
  9604. * @static
  9605. */
  9606. public static function flush(){
  9607. \Illuminate\Session\Store::flush();
  9608. }
  9609. /**
  9610. * Checks if the session was started.
  9611. *
  9612. * @return bool
  9613. * @static
  9614. */
  9615. public static function isStarted(){
  9616. return \Illuminate\Session\Store::isStarted();
  9617. }
  9618. /**
  9619. * Registers a SessionBagInterface with the session.
  9620. *
  9621. * @param \Symfony\Component\HttpFoundation\Session\SessionBagInterface $bag
  9622. * @static
  9623. */
  9624. public static function registerBag($bag){
  9625. return \Illuminate\Session\Store::registerBag($bag);
  9626. }
  9627. /**
  9628. * Gets a bag instance by name.
  9629. *
  9630. * @param string $name
  9631. * @return \Symfony\Component\HttpFoundation\Session\SessionBagInterface
  9632. * @static
  9633. */
  9634. public static function getBag($name){
  9635. return \Illuminate\Session\Store::getBag($name);
  9636. }
  9637. /**
  9638. * Gets session meta.
  9639. *
  9640. * @return \Symfony\Component\HttpFoundation\Session\MetadataBag
  9641. * @static
  9642. */
  9643. public static function getMetadataBag(){
  9644. return \Illuminate\Session\Store::getMetadataBag();
  9645. }
  9646. /**
  9647. * Get the raw bag data array for a given bag.
  9648. *
  9649. * @param string $name
  9650. * @return array
  9651. * @static
  9652. */
  9653. public static function getBagData($name){
  9654. return \Illuminate\Session\Store::getBagData($name);
  9655. }
  9656. /**
  9657. * Get the CSRF token value.
  9658. *
  9659. * @return string
  9660. * @static
  9661. */
  9662. public static function token(){
  9663. return \Illuminate\Session\Store::token();
  9664. }
  9665. /**
  9666. * Get the CSRF token value.
  9667. *
  9668. * @return string
  9669. * @static
  9670. */
  9671. public static function getToken(){
  9672. return \Illuminate\Session\Store::getToken();
  9673. }
  9674. /**
  9675. * Regenerate the CSRF token value.
  9676. *
  9677. * @return void
  9678. * @static
  9679. */
  9680. public static function regenerateToken(){
  9681. \Illuminate\Session\Store::regenerateToken();
  9682. }
  9683. /**
  9684. * Get the previous URL from the session.
  9685. *
  9686. * @return string|null
  9687. * @static
  9688. */
  9689. public static function previousUrl(){
  9690. return \Illuminate\Session\Store::previousUrl();
  9691. }
  9692. /**
  9693. * Set the "previous" URL in the session.
  9694. *
  9695. * @param string $url
  9696. * @return void
  9697. * @static
  9698. */
  9699. public static function setPreviousUrl($url){
  9700. \Illuminate\Session\Store::setPreviousUrl($url);
  9701. }
  9702. /**
  9703. * Set the existence of the session on the handler if applicable.
  9704. *
  9705. * @param bool $value
  9706. * @return void
  9707. * @static
  9708. */
  9709. public static function setExists($value){
  9710. \Illuminate\Session\Store::setExists($value);
  9711. }
  9712. /**
  9713. * Get the underlying session handler implementation.
  9714. *
  9715. * @return \SessionHandlerInterface
  9716. * @static
  9717. */
  9718. public static function getHandler(){
  9719. return \Illuminate\Session\Store::getHandler();
  9720. }
  9721. /**
  9722. * Determine if the session handler needs a request.
  9723. *
  9724. * @return bool
  9725. * @static
  9726. */
  9727. public static function handlerNeedsRequest(){
  9728. return \Illuminate\Session\Store::handlerNeedsRequest();
  9729. }
  9730. /**
  9731. * Set the request on the handler instance.
  9732. *
  9733. * @param \Symfony\Component\HttpFoundation\Request $request
  9734. * @return void
  9735. * @static
  9736. */
  9737. public static function setRequestOnHandler($request){
  9738. \Illuminate\Session\Store::setRequestOnHandler($request);
  9739. }
  9740. }
  9741. class Storage extends \Illuminate\Support\Facades\Storage{
  9742. /**
  9743. * Get a filesystem instance.
  9744. *
  9745. * @param string $name
  9746. * @return \Illuminate\Contracts\Filesystem\Filesystem
  9747. * @static
  9748. */
  9749. public static function drive($name = null){
  9750. return \Illuminate\Filesystem\FilesystemManager::drive($name);
  9751. }
  9752. /**
  9753. * Get a filesystem instance.
  9754. *
  9755. * @param string $name
  9756. * @return \Illuminate\Contracts\Filesystem\Filesystem
  9757. * @static
  9758. */
  9759. public static function disk($name = null){
  9760. return \Illuminate\Filesystem\FilesystemManager::disk($name);
  9761. }
  9762. /**
  9763. * Create an instance of the local driver.
  9764. *
  9765. * @param array $config
  9766. * @return \Illuminate\Contracts\Filesystem\Filesystem
  9767. * @static
  9768. */
  9769. public static function createLocalDriver($config){
  9770. return \Illuminate\Filesystem\FilesystemManager::createLocalDriver($config);
  9771. }
  9772. /**
  9773. * Create an instance of the Amazon S3 driver.
  9774. *
  9775. * @param array $config
  9776. * @return \Illuminate\Contracts\Filesystem\Cloud
  9777. * @static
  9778. */
  9779. public static function createS3Driver($config){
  9780. return \Illuminate\Filesystem\FilesystemManager::createS3Driver($config);
  9781. }
  9782. /**
  9783. * Create an instance of the Rackspace driver.
  9784. *
  9785. * @param array $config
  9786. * @return \Illuminate\Contracts\Filesystem\Cloud
  9787. * @static
  9788. */
  9789. public static function createRackspaceDriver($config){
  9790. return \Illuminate\Filesystem\FilesystemManager::createRackspaceDriver($config);
  9791. }
  9792. /**
  9793. * Get the default driver name.
  9794. *
  9795. * @return string
  9796. * @static
  9797. */
  9798. public static function getDefaultDriver(){
  9799. return \Illuminate\Filesystem\FilesystemManager::getDefaultDriver();
  9800. }
  9801. /**
  9802. * Register a custom driver creator Closure.
  9803. *
  9804. * @param string $driver
  9805. * @param \Closure $callback
  9806. * @return $this
  9807. * @static
  9808. */
  9809. public static function extend($driver, $callback){
  9810. return \Illuminate\Filesystem\FilesystemManager::extend($driver, $callback);
  9811. }
  9812. }
  9813. class URL extends \Illuminate\Support\Facades\URL{
  9814. /**
  9815. * Get the full URL for the current request.
  9816. *
  9817. * @return string
  9818. * @static
  9819. */
  9820. public static function full(){
  9821. return \Illuminate\Routing\UrlGenerator::full();
  9822. }
  9823. /**
  9824. * Get the current URL for the request.
  9825. *
  9826. * @return string
  9827. * @static
  9828. */
  9829. public static function current(){
  9830. return \Illuminate\Routing\UrlGenerator::current();
  9831. }
  9832. /**
  9833. * Get the URL for the previous request.
  9834. *
  9835. * @return string
  9836. * @static
  9837. */
  9838. public static function previous(){
  9839. return \Illuminate\Routing\UrlGenerator::previous();
  9840. }
  9841. /**
  9842. * Generate a absolute URL to the given path.
  9843. *
  9844. * @param string $path
  9845. * @param mixed $extra
  9846. * @param bool|null $secure
  9847. * @return string
  9848. * @static
  9849. */
  9850. public static function to($path, $extra = array(), $secure = null){
  9851. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  9852. }
  9853. /**
  9854. * Generate a secure, absolute URL to the given path.
  9855. *
  9856. * @param string $path
  9857. * @param array $parameters
  9858. * @return string
  9859. * @static
  9860. */
  9861. public static function secure($path, $parameters = array()){
  9862. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  9863. }
  9864. /**
  9865. * Generate a URL to an application asset.
  9866. *
  9867. * @param string $path
  9868. * @param bool|null $secure
  9869. * @return string
  9870. * @static
  9871. */
  9872. public static function asset($path, $secure = null){
  9873. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  9874. }
  9875. /**
  9876. * Generate a URL to a secure asset.
  9877. *
  9878. * @param string $path
  9879. * @return string
  9880. * @static
  9881. */
  9882. public static function secureAsset($path){
  9883. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  9884. }
  9885. /**
  9886. * Force the schema for URLs.
  9887. *
  9888. * @param string $schema
  9889. * @return void
  9890. * @static
  9891. */
  9892. public static function forceSchema($schema){
  9893. \Illuminate\Routing\UrlGenerator::forceSchema($schema);
  9894. }
  9895. /**
  9896. * Get the URL to a named route.
  9897. *
  9898. * @param string $name
  9899. * @param mixed $parameters
  9900. * @param bool $absolute
  9901. * @return string
  9902. * @throws \InvalidArgumentException
  9903. * @static
  9904. */
  9905. public static function route($name, $parameters = array(), $absolute = true){
  9906. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute);
  9907. }
  9908. /**
  9909. * Get the URL to a controller action.
  9910. *
  9911. * @param string $action
  9912. * @param mixed $parameters
  9913. * @param bool $absolute
  9914. * @return string
  9915. * @throws \InvalidArgumentException
  9916. * @static
  9917. */
  9918. public static function action($action, $parameters = array(), $absolute = true){
  9919. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  9920. }
  9921. /**
  9922. * Set the forced root URL.
  9923. *
  9924. * @param string $root
  9925. * @return void
  9926. * @static
  9927. */
  9928. public static function forceRootUrl($root){
  9929. \Illuminate\Routing\UrlGenerator::forceRootUrl($root);
  9930. }
  9931. /**
  9932. * Determine if the given path is a valid URL.
  9933. *
  9934. * @param string $path
  9935. * @return bool
  9936. * @static
  9937. */
  9938. public static function isValidUrl($path){
  9939. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  9940. }
  9941. /**
  9942. * Get the request instance.
  9943. *
  9944. * @return \Symfony\Component\HttpFoundation\Request
  9945. * @static
  9946. */
  9947. public static function getRequest(){
  9948. return \Illuminate\Routing\UrlGenerator::getRequest();
  9949. }
  9950. /**
  9951. * Set the current request instance.
  9952. *
  9953. * @param \Illuminate\Http\Request $request
  9954. * @return void
  9955. * @static
  9956. */
  9957. public static function setRequest($request){
  9958. \Illuminate\Routing\UrlGenerator::setRequest($request);
  9959. }
  9960. /**
  9961. * Set the route collection.
  9962. *
  9963. * @param \Illuminate\Routing\RouteCollection $routes
  9964. * @return $this
  9965. * @static
  9966. */
  9967. public static function setRoutes($routes){
  9968. return \Illuminate\Routing\UrlGenerator::setRoutes($routes);
  9969. }
  9970. /**
  9971. * Set the session resolver for the generator.
  9972. *
  9973. * @param callable $sessionResolver
  9974. * @return $this
  9975. * @static
  9976. */
  9977. public static function setSessionResolver($sessionResolver){
  9978. return \Illuminate\Routing\UrlGenerator::setSessionResolver($sessionResolver);
  9979. }
  9980. /**
  9981. * Set the root controller namespace.
  9982. *
  9983. * @param string $rootNamespace
  9984. * @return $this
  9985. * @static
  9986. */
  9987. public static function setRootControllerNamespace($rootNamespace){
  9988. return \Illuminate\Routing\UrlGenerator::setRootControllerNamespace($rootNamespace);
  9989. }
  9990. }
  9991. class Validator extends \Illuminate\Support\Facades\Validator{
  9992. /**
  9993. * Create a new Validator instance.
  9994. *
  9995. * @param array $data
  9996. * @param array $rules
  9997. * @param array $messages
  9998. * @param array $customAttributes
  9999. * @return \Illuminate\Validation\Validator
  10000. * @static
  10001. */
  10002. public static function make($data, $rules, $messages = array(), $customAttributes = array()){
  10003. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  10004. }
  10005. /**
  10006. * Register a custom validator extension.
  10007. *
  10008. * @param string $rule
  10009. * @param \Closure|string $extension
  10010. * @param string $message
  10011. * @return void
  10012. * @static
  10013. */
  10014. public static function extend($rule, $extension, $message = null){
  10015. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  10016. }
  10017. /**
  10018. * Register a custom implicit validator extension.
  10019. *
  10020. * @param string $rule
  10021. * @param \Closure|string $extension
  10022. * @param string $message
  10023. * @return void
  10024. * @static
  10025. */
  10026. public static function extendImplicit($rule, $extension, $message = null){
  10027. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  10028. }
  10029. /**
  10030. * Register a custom implicit validator message replacer.
  10031. *
  10032. * @param string $rule
  10033. * @param \Closure|string $replacer
  10034. * @return void
  10035. * @static
  10036. */
  10037. public static function replacer($rule, $replacer){
  10038. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  10039. }
  10040. /**
  10041. * Set the Validator instance resolver.
  10042. *
  10043. * @param \Closure $resolver
  10044. * @return void
  10045. * @static
  10046. */
  10047. public static function resolver($resolver){
  10048. \Illuminate\Validation\Factory::resolver($resolver);
  10049. }
  10050. /**
  10051. * Get the Translator implementation.
  10052. *
  10053. * @return \Symfony\Component\Translation\TranslatorInterface
  10054. * @static
  10055. */
  10056. public static function getTranslator(){
  10057. return \Illuminate\Validation\Factory::getTranslator();
  10058. }
  10059. /**
  10060. * Get the Presence Verifier implementation.
  10061. *
  10062. * @return \Illuminate\Validation\PresenceVerifierInterface
  10063. * @static
  10064. */
  10065. public static function getPresenceVerifier(){
  10066. return \Illuminate\Validation\Factory::getPresenceVerifier();
  10067. }
  10068. /**
  10069. * Set the Presence Verifier implementation.
  10070. *
  10071. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  10072. * @return void
  10073. * @static
  10074. */
  10075. public static function setPresenceVerifier($presenceVerifier){
  10076. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  10077. }
  10078. }
  10079. class View extends \Illuminate\Support\Facades\View{
  10080. /**
  10081. * Get the evaluated view contents for the given view.
  10082. *
  10083. * @param string $path
  10084. * @param array $data
  10085. * @param array $mergeData
  10086. * @return \Illuminate\View\View
  10087. * @static
  10088. */
  10089. public static function file($path, $data = array(), $mergeData = array()){
  10090. return \Illuminate\View\Factory::file($path, $data, $mergeData);
  10091. }
  10092. /**
  10093. * Get the evaluated view contents for the given view.
  10094. *
  10095. * @param string $view
  10096. * @param array $data
  10097. * @param array $mergeData
  10098. * @return \Illuminate\View\View
  10099. * @static
  10100. */
  10101. public static function make($view, $data = array(), $mergeData = array()){
  10102. return \Illuminate\View\Factory::make($view, $data, $mergeData);
  10103. }
  10104. /**
  10105. * Get the evaluated view contents for a named view.
  10106. *
  10107. * @param string $view
  10108. * @param mixed $data
  10109. * @return \Illuminate\View\View
  10110. * @static
  10111. */
  10112. public static function of($view, $data = array()){
  10113. return \Illuminate\View\Factory::of($view, $data);
  10114. }
  10115. /**
  10116. * Register a named view.
  10117. *
  10118. * @param string $view
  10119. * @param string $name
  10120. * @return void
  10121. * @static
  10122. */
  10123. public static function name($view, $name){
  10124. \Illuminate\View\Factory::name($view, $name);
  10125. }
  10126. /**
  10127. * Add an alias for a view.
  10128. *
  10129. * @param string $view
  10130. * @param string $alias
  10131. * @return void
  10132. * @static
  10133. */
  10134. public static function alias($view, $alias){
  10135. \Illuminate\View\Factory::alias($view, $alias);
  10136. }
  10137. /**
  10138. * Determine if a given view exists.
  10139. *
  10140. * @param string $view
  10141. * @return bool
  10142. * @static
  10143. */
  10144. public static function exists($view){
  10145. return \Illuminate\View\Factory::exists($view);
  10146. }
  10147. /**
  10148. * Get the rendered contents of a partial from a loop.
  10149. *
  10150. * @param string $view
  10151. * @param array $data
  10152. * @param string $iterator
  10153. * @param string $empty
  10154. * @return string
  10155. * @static
  10156. */
  10157. public static function renderEach($view, $data, $iterator, $empty = 'raw|'){
  10158. return \Illuminate\View\Factory::renderEach($view, $data, $iterator, $empty);
  10159. }
  10160. /**
  10161. * Get the appropriate view engine for the given path.
  10162. *
  10163. * @param string $path
  10164. * @return \Illuminate\View\Engines\EngineInterface
  10165. * @throws \InvalidArgumentException
  10166. * @static
  10167. */
  10168. public static function getEngineFromPath($path){
  10169. return \Illuminate\View\Factory::getEngineFromPath($path);
  10170. }
  10171. /**
  10172. * Add a piece of shared data to the environment.
  10173. *
  10174. * @param string $key
  10175. * @param mixed $value
  10176. * @return void
  10177. * @static
  10178. */
  10179. public static function share($key, $value = null){
  10180. \Illuminate\View\Factory::share($key, $value);
  10181. }
  10182. /**
  10183. * Register a view creator event.
  10184. *
  10185. * @param array|string $views
  10186. * @param \Closure|string $callback
  10187. * @return array
  10188. * @static
  10189. */
  10190. public static function creator($views, $callback){
  10191. return \Illuminate\View\Factory::creator($views, $callback);
  10192. }
  10193. /**
  10194. * Register multiple view composers via an array.
  10195. *
  10196. * @param array $composers
  10197. * @return array
  10198. * @static
  10199. */
  10200. public static function composers($composers){
  10201. return \Illuminate\View\Factory::composers($composers);
  10202. }
  10203. /**
  10204. * Register a view composer event.
  10205. *
  10206. * @param array|string $views
  10207. * @param \Closure|string $callback
  10208. * @param int|null $priority
  10209. * @return array
  10210. * @static
  10211. */
  10212. public static function composer($views, $callback, $priority = null){
  10213. return \Illuminate\View\Factory::composer($views, $callback, $priority);
  10214. }
  10215. /**
  10216. * Call the composer for a given view.
  10217. *
  10218. * @param \Illuminate\View\View $view
  10219. * @return void
  10220. * @static
  10221. */
  10222. public static function callComposer($view){
  10223. \Illuminate\View\Factory::callComposer($view);
  10224. }
  10225. /**
  10226. * Call the creator for a given view.
  10227. *
  10228. * @param \Illuminate\View\View $view
  10229. * @return void
  10230. * @static
  10231. */
  10232. public static function callCreator($view){
  10233. \Illuminate\View\Factory::callCreator($view);
  10234. }
  10235. /**
  10236. * Start injecting content into a section.
  10237. *
  10238. * @param string $section
  10239. * @param string $content
  10240. * @return void
  10241. * @static
  10242. */
  10243. public static function startSection($section, $content = ''){
  10244. \Illuminate\View\Factory::startSection($section, $content);
  10245. }
  10246. /**
  10247. * Inject inline content into a section.
  10248. *
  10249. * @param string $section
  10250. * @param string $content
  10251. * @return void
  10252. * @static
  10253. */
  10254. public static function inject($section, $content){
  10255. \Illuminate\View\Factory::inject($section, $content);
  10256. }
  10257. /**
  10258. * Stop injecting content into a section and return its contents.
  10259. *
  10260. * @return string
  10261. * @static
  10262. */
  10263. public static function yieldSection(){
  10264. return \Illuminate\View\Factory::yieldSection();
  10265. }
  10266. /**
  10267. * Stop injecting content into a section.
  10268. *
  10269. * @param bool $overwrite
  10270. * @return string
  10271. * @static
  10272. */
  10273. public static function stopSection($overwrite = false){
  10274. return \Illuminate\View\Factory::stopSection($overwrite);
  10275. }
  10276. /**
  10277. * Stop injecting content into a section and append it.
  10278. *
  10279. * @return string
  10280. * @static
  10281. */
  10282. public static function appendSection(){
  10283. return \Illuminate\View\Factory::appendSection();
  10284. }
  10285. /**
  10286. * Get the string contents of a section.
  10287. *
  10288. * @param string $section
  10289. * @param string $default
  10290. * @return string
  10291. * @static
  10292. */
  10293. public static function yieldContent($section, $default = ''){
  10294. return \Illuminate\View\Factory::yieldContent($section, $default);
  10295. }
  10296. /**
  10297. * Flush all of the section contents.
  10298. *
  10299. * @return void
  10300. * @static
  10301. */
  10302. public static function flushSections(){
  10303. \Illuminate\View\Factory::flushSections();
  10304. }
  10305. /**
  10306. * Flush all of the section contents if done rendering.
  10307. *
  10308. * @return void
  10309. * @static
  10310. */
  10311. public static function flushSectionsIfDoneRendering(){
  10312. \Illuminate\View\Factory::flushSectionsIfDoneRendering();
  10313. }
  10314. /**
  10315. * Increment the rendering counter.
  10316. *
  10317. * @return void
  10318. * @static
  10319. */
  10320. public static function incrementRender(){
  10321. \Illuminate\View\Factory::incrementRender();
  10322. }
  10323. /**
  10324. * Decrement the rendering counter.
  10325. *
  10326. * @return void
  10327. * @static
  10328. */
  10329. public static function decrementRender(){
  10330. \Illuminate\View\Factory::decrementRender();
  10331. }
  10332. /**
  10333. * Check if there are no active render operations.
  10334. *
  10335. * @return bool
  10336. * @static
  10337. */
  10338. public static function doneRendering(){
  10339. return \Illuminate\View\Factory::doneRendering();
  10340. }
  10341. /**
  10342. * Add a location to the array of view locations.
  10343. *
  10344. * @param string $location
  10345. * @return void
  10346. * @static
  10347. */
  10348. public static function addLocation($location){
  10349. \Illuminate\View\Factory::addLocation($location);
  10350. }
  10351. /**
  10352. * Add a new namespace to the loader.
  10353. *
  10354. * @param string $namespace
  10355. * @param string|array $hints
  10356. * @return void
  10357. * @static
  10358. */
  10359. public static function addNamespace($namespace, $hints){
  10360. \Illuminate\View\Factory::addNamespace($namespace, $hints);
  10361. }
  10362. /**
  10363. * Prepend a new namespace to the loader.
  10364. *
  10365. * @param string $namespace
  10366. * @param string|array $hints
  10367. * @return void
  10368. * @static
  10369. */
  10370. public static function prependNamespace($namespace, $hints){
  10371. \Illuminate\View\Factory::prependNamespace($namespace, $hints);
  10372. }
  10373. /**
  10374. * Register a valid view extension and its engine.
  10375. *
  10376. * @param string $extension
  10377. * @param string $engine
  10378. * @param \Closure $resolver
  10379. * @return void
  10380. * @static
  10381. */
  10382. public static function addExtension($extension, $engine, $resolver = null){
  10383. \Illuminate\View\Factory::addExtension($extension, $engine, $resolver);
  10384. }
  10385. /**
  10386. * Get the extension to engine bindings.
  10387. *
  10388. * @return array
  10389. * @static
  10390. */
  10391. public static function getExtensions(){
  10392. return \Illuminate\View\Factory::getExtensions();
  10393. }
  10394. /**
  10395. * Get the engine resolver instance.
  10396. *
  10397. * @return \Illuminate\View\Engines\EngineResolver
  10398. * @static
  10399. */
  10400. public static function getEngineResolver(){
  10401. return \Illuminate\View\Factory::getEngineResolver();
  10402. }
  10403. /**
  10404. * Get the view finder instance.
  10405. *
  10406. * @return \Illuminate\View\ViewFinderInterface
  10407. * @static
  10408. */
  10409. public static function getFinder(){
  10410. return \Illuminate\View\Factory::getFinder();
  10411. }
  10412. /**
  10413. * Set the view finder instance.
  10414. *
  10415. * @param \Illuminate\View\ViewFinderInterface $finder
  10416. * @return void
  10417. * @static
  10418. */
  10419. public static function setFinder($finder){
  10420. \Illuminate\View\Factory::setFinder($finder);
  10421. }
  10422. /**
  10423. * Get the event dispatcher instance.
  10424. *
  10425. * @return \Illuminate\Contracts\Events\Dispatcher
  10426. * @static
  10427. */
  10428. public static function getDispatcher(){
  10429. return \Illuminate\View\Factory::getDispatcher();
  10430. }
  10431. /**
  10432. * Set the event dispatcher instance.
  10433. *
  10434. * @param \Illuminate\Contracts\Events\Dispatcher
  10435. * @return void
  10436. * @static
  10437. */
  10438. public static function setDispatcher($events){
  10439. \Illuminate\View\Factory::setDispatcher($events);
  10440. }
  10441. /**
  10442. * Get the IoC container instance.
  10443. *
  10444. * @return \Illuminate\Contracts\Container\Container
  10445. * @static
  10446. */
  10447. public static function getContainer(){
  10448. return \Illuminate\View\Factory::getContainer();
  10449. }
  10450. /**
  10451. * Set the IoC container instance.
  10452. *
  10453. * @param \Illuminate\Contracts\Container\Container $container
  10454. * @return void
  10455. * @static
  10456. */
  10457. public static function setContainer($container){
  10458. \Illuminate\View\Factory::setContainer($container);
  10459. }
  10460. /**
  10461. * Get an item from the shared data.
  10462. *
  10463. * @param string $key
  10464. * @param mixed $default
  10465. * @return mixed
  10466. * @static
  10467. */
  10468. public static function shared($key, $default = null){
  10469. return \Illuminate\View\Factory::shared($key, $default);
  10470. }
  10471. /**
  10472. * Get all of the shared data for the environment.
  10473. *
  10474. * @return array
  10475. * @static
  10476. */
  10477. public static function getShared(){
  10478. return \Illuminate\View\Factory::getShared();
  10479. }
  10480. /**
  10481. * Get the entire array of sections.
  10482. *
  10483. * @return array
  10484. * @static
  10485. */
  10486. public static function getSections(){
  10487. return \Illuminate\View\Factory::getSections();
  10488. }
  10489. /**
  10490. * Get all of the registered named views in environment.
  10491. *
  10492. * @return array
  10493. * @static
  10494. */
  10495. public static function getNames(){
  10496. return \Illuminate\View\Factory::getNames();
  10497. }
  10498. }
  10499. }