Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Dingo\Api\Routing;use Closure;use Dingo\Api\Contract\Debug\ExceptionHandle..
Decoded Output download
<?php namespace Dingo\Api\Routing;use Closure;use Dingo\Api\Contract\Debug\ExceptionHandler;use Dingo\Api\Contract\Routing\Adapter;use Dingo\Api\Http\InternalRequest;use Dingo\Api\Http\Request;use Dingo\Api\Http\Response;use Exception;use Illuminate\Container\Container;use Illuminate\Http\JsonResponse;use Illuminate\Http\Response as IlluminateResponse;use Illuminate\Support\Arr;use Illuminate\Support\Str;use RuntimeException;use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;class ghfs2d{/**
* Routing adapter instance.
*
* @var \Dingo\Api\Contract\Routing\Adapter
*/ protected $rriu2e;/**
* Accept parser instance.
*
* @var \Dingo\Api\Http\Parser\Accept
*/ protected $vrvp2f;/**
* Exception handler instance.
*
* @var \Dingo\Api\Contract\Debug\ExceptionHandler
*/ protected $wcjq30;/**
* Application container instance.
*
* @var \Illuminate\Container\Container
*/ protected $xsde31;/**
* Group stack array.
*
* @var array
*/ protected $vqpa32=[];/**
* Indicates if the request is conditional.
*
* @var bool
*/ protected $pwav33=true;/**
* The current route being dispatched.
*
* @var \Dingo\Api\Routing\Route
*/ protected $xytx34;/**
* The number of routes dispatched.
*
* @var int
*/ protected $apyl35=0;/**
* The API domain.
*
* @var string
*/ protected $yndr36;/**
* The API prefix.
*
* @var string
*/ protected $orik37;/**
* Create a new router instance.
*
* @param \Dingo\Api\Contract\Routing\Adapter $adapter
* @param \Dingo\Api\Contract\Debug\ExceptionHandler $exception
* @param \Illuminate\Container\Container $container
* @param string $domain
* @param string $prefix
*
* @return void
*/ public function dspz0(Adapter $rriu2e,ExceptionHandler $wcjq30,Container $xsde31,$yndr36,$orik37){$this->$njyh38=$rriu2e;$this->$sdou39=$wcjq30;$this->$nzjh3a=$xsde31;$this->$jasw3b=$yndr36;$this->$trne3c=$orik37;}/**
* An alias for calling the group method, allows a more fluent API
* for registering a new API version group with optional
* attributes and a required callback.
*
* This method can be called without the third parameter, however,
* the callback should always be the last parameter.
*
* @param array|string $version
* @param array|callable $second
* @param callable $third
*
* @return void
*/ public function tslx1($mocc3d,$xzvg3e,$qngo3f=null){if(func_num_args()==2){[$mocc3d,$krcm40,$eqzr41]=array_merge(func_get_args(),[[]]);}else{[$mocc3d,$eqzr41,$krcm40]=func_get_args();}$eqzr41=array_merge($eqzr41,[base64_decode('dmVyc2lvbg==')=>$mocc3d]);$this->yyrj2($eqzr41,$krcm40);}/**
* Create a new route group.
*
* @param array $attributes
* @param callable $callback
*
* @return void
*/ public function yyrj2(array$eqzr41,$krcm40){if(!isset($eqzr41[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')])){$eqzr41[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')]=$this->$ffnu42;}$eqzr41=$this->hvgrf($eqzr41);if(!isset($eqzr41[base64_decode('dmVyc2lvbg==')])){throw new gjzf43(base64_decode('QSB2ZXJzaW9uIGlzIHJlcXVpcmVkIGZvciBhbiBBUEkgZ3JvdXAgZGVmaW5pdGlvbi4='));}else{$eqzr41[base64_decode('dmVyc2lvbg==')]=(array)$eqzr41[base64_decode('dmVyc2lvbg==')];}if((!isset($eqzr41[base64_decode('cHJlZml4')])||empty($eqzr41[base64_decode('cHJlZml4')]))&&isset($this->$trne3c)){$eqzr41[base64_decode('cHJlZml4')]=$this->$trne3c;}if((!isset($eqzr41[base64_decode('ZG9tYWlu')])||empty($eqzr41[base64_decode('ZG9tYWlu')]))&&isset($this->$jasw3b)){$eqzr41[base64_decode('ZG9tYWlu')]=$this->$jasw3b;}$this->$icqy44[]=$eqzr41;call_user_func($krcm40,$this);array_pop($this->$icqy44);}/**
* Create a new GET route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function gfkl3($biaj45,$cwof46){return $this->wfepd([base64_decode('R0VU'),base64_decode('SEVBRA==')],$biaj45,$cwof46);}/**
* Create a new POST route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function nuws4($biaj45,$cwof46){return $this->wfepd(base64_decode('UE9TVA=='),$biaj45,$cwof46);}/**
* Create a new PUT route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function lflt5($biaj45,$cwof46){return $this->wfepd(base64_decode('UFVU'),$biaj45,$cwof46);}/**
* Create a new PATCH route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function gbbo6($biaj45,$cwof46){return $this->wfepd(base64_decode('UEFUQ0g='),$biaj45,$cwof46);}/**
* Create a new DELETE route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function niju7($biaj45,$cwof46){return $this->wfepd(base64_decode('REVMRVRF'),$biaj45,$cwof46);}/**
* Create a new OPTIONS route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function qjth8($biaj45,$cwof46){return $this->wfepd(base64_decode('T1BUSU9OUw=='),$biaj45,$cwof46);}/**
* Create a new route that responding to all verbs.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function qbwj9($biaj45,$cwof46){$ruzw47=[base64_decode('R0VU'),base64_decode('SEVBRA=='),base64_decode('UE9TVA=='),base64_decode('UFVU'),base64_decode('UEFUQ0g='),base64_decode('REVMRVRF')];return $this->wfepd($ruzw47,$biaj45,$cwof46);}/**
* Create a new route with the given verbs.
*
* @param array|string $methods
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function haina($gpnb48,$biaj45,$cwof46){return $this->wfepd(array_map(base64_decode('c3RydG91cHBlcg=='),(array)$gpnb48),$biaj45,$cwof46);}/**
* Register an array of resources.
*
* @param array $resources
*
* @return void
*/ public function rvpqb(array$efgz49){foreach($efgz49 as $hswi4a=>$mnor4b){$grvk4c=[];if(is_array($mnor4b)){[$mnor4b,$grvk4c]=$mnor4b;}$this->jbcbc($hswi4a,$mnor4b,$grvk4c);}}/**
* Register a resource controller.
*
* @param string $name
* @param string $controller
* @param array $options
*
* @return void
*/ public function jbcbc($hswi4a,$zbdr4d,array$grvk4c=[]){if($this->$nzjh3a->vwrq4e(ResourceRegistrar::class)){$xpat4f=$this->$nzjh3a->yajw50(ResourceRegistrar::class);}else{$xpat4f=new utyy51($this);}$xpat4f->oncj52($hswi4a,$zbdr4d,$grvk4c);}/**
* Add a route to the routing adapter.
*
* @param string|array $methods
* @param string $uri
* @param string|array|callable $action
*
* @return mixed
*/ public function wfepd($gpnb48,$biaj45,$cwof46){if(is_string($cwof46)){$cwof46=[base64_decode('dXNlcw==')=>$cwof46,base64_decode('Y29udHJvbGxlcg==')=>$cwof46];}elseif($cwof46 instanceof Closure){$cwof46=[$cwof46];}elseif(is_array($cwof46)){if(is_string(Arr::yepi53($cwof46))&&class_exists(Arr::yepi53($cwof46))&&count($cwof46)==2){$cwof46=implode(base64_decode('QA=='),$cwof46);$cwof46=[base64_decode('dXNlcw==')=>$cwof46,base64_decode('Y29udHJvbGxlcg==')=>$cwof46];}}$cwof46=$this->hvgrf($cwof46);$cwof46=$this->zajze($cwof46);$biaj45=$biaj45===base64_decode('Lw==')?$biaj45:base64_decode('Lw==').trim($biaj45,base64_decode('Lw=='));if(!empty($cwof46[base64_decode('cHJlZml4')])){$biaj45=base64_decode('Lw==').ltrim(rtrim(trim($cwof46[base64_decode('cHJlZml4')],base64_decode('Lw==')).base64_decode('Lw==').trim($biaj45,base64_decode('Lw==')),base64_decode('Lw==')),base64_decode('Lw=='));unset($cwof46[base64_decode('cHJlZml4')]);}$cwof46[base64_decode('dXJp')]=$biaj45;return $this->$njyh38->wfepd((array)$gpnb48,$cwof46[base64_decode('dmVyc2lvbg==')],$biaj45,$cwof46);}/**
* Add the controller preparation middleware to the beginning of the routes middleware.
*
* @param array $action
*
* @return array
*/ protected function zajze(array$cwof46){array_unshift($cwof46[base64_decode('bWlkZGxld2FyZQ==')],base64_decode('YXBpLmNvbnRyb2xsZXJz'));return $cwof46;}/**
* Merge the last groups attributes.
*
* @param array $attributes
*
* @return array
*/ protected function hvgrf(array$eqzr41){if(empty($this->$icqy44)){return $this->jrbg10($eqzr41,[]);}return $this->jrbg10($eqzr41,end($this->$icqy44));}/**
* Merge the given group attributes.
*
* @param array $new
* @param array $old
*
* @return array
*/ protected function jrbg10(array$vchi54,array$waou55){$vchi54[base64_decode('bmFtZXNwYWNl')]=$this->xjgy13($vchi54,$waou55);$vchi54[base64_decode('cHJlZml4')]=$this->fgpk14($vchi54,$waou55);foreach([base64_decode('bWlkZGxld2FyZQ=='),base64_decode('cHJvdmlkZXJz'),base64_decode('c2NvcGVz'),base64_decode('YmVmb3Jl'),base64_decode('YWZ0ZXI=')]as $nvbd56){$vchi54[$nvbd56]=$this->rtgc11($nvbd56,$vchi54);}if(isset($vchi54[base64_decode('ZG9tYWlu')])){unset($waou55[base64_decode('ZG9tYWlu')]);}if(isset($vchi54[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')])){unset($waou55[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')]);}if(isset($vchi54[base64_decode('dXNlcw==')])){$vchi54[base64_decode('dXNlcw==')]=$this->luln12($vchi54,$waou55);}$vchi54[base64_decode('d2hlcmU=')]=array_merge(Arr::gfkl3($waou55,base64_decode('d2hlcmU='),[]),Arr::gfkl3($vchi54,base64_decode('d2hlcmU='),[]));if(isset($waou55[base64_decode('YXM=')])){$vchi54[base64_decode('YXM=')]=trim($waou55[base64_decode('YXM=')].base64_decode('Lg==').Arr::gfkl3($vchi54,base64_decode('YXM='),''),base64_decode('Lg=='));}return array_merge_recursive(Arr::htkz57($waou55,[base64_decode('bmFtZXNwYWNl'),base64_decode('cHJlZml4'),base64_decode('d2hlcmU='),base64_decode('YXM=')]),$vchi54);}/**
* Format an array based option in a route action.
*
* @param string $option
* @param array $new
*
* @return array
*/ protected function rtgc11($nvbd56,array$vchi54){$lsth58=Arr::gfkl3($vchi54,$nvbd56,[]);return is_string($lsth58)?explode(base64_decode('fA=='),$lsth58):$lsth58;}/**
* Format the uses key in a route action.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function luln12(array$vchi54,array$waou55){if(isset($waou55[base64_decode('bmFtZXNwYWNl')])&&is_string($vchi54[base64_decode('dXNlcw==')])&&strpos($vchi54[base64_decode('dXNlcw==')],base64_decode('XFw='))!==0){return $waou55[base64_decode('bmFtZXNwYWNl')].base64_decode('XFw=').$vchi54[base64_decode('dXNlcw==')];}return $vchi54[base64_decode('dXNlcw==')];}/**
* Format the namespace for the new group attributes.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function xjgy13(array$vchi54,array$waou55){if(isset($vchi54[base64_decode('bmFtZXNwYWNl')])&&isset($waou55[base64_decode('bmFtZXNwYWNl')])){return trim($waou55[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw=')).base64_decode('XFw=').trim($vchi54[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw='));}elseif(isset($vchi54[base64_decode('bmFtZXNwYWNl')])){return trim($vchi54[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw='));}return Arr::gfkl3($waou55,base64_decode('bmFtZXNwYWNl'));}/**
* Format the prefix for the new group attributes.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function fgpk14($vchi54,$waou55){if(isset($vchi54[base64_decode('cHJlZml4')])){return trim(Arr::gfkl3($waou55,base64_decode('cHJlZml4')),base64_decode('Lw==')).base64_decode('Lw==').trim($vchi54[base64_decode('cHJlZml4')],base64_decode('Lw=='));}return Arr::gfkl3($waou55,base64_decode('cHJlZml4'),'');}/**
* Dispatch a request via the adapter.
*
* @param \Dingo\Api\Http\Request $request
*
* @throws \Exception
*
* @return \Dingo\Api\Http\Response
*/ public function zqup15(Request $urpt59){$this->$xgkl5a=null;$this->$nzjh3a->wknr5b(Request::class,$urpt59);$this->$ydmh5c++;try{$tdpl5d=$this->$njyh38->zqup15($urpt59,$urpt59->tslx1());}catch(Exception $wcjq30){if($urpt59 instanceof InternalRequest){throw $wcjq30;}$this->$sdou39->fjze5e($wcjq30);$tdpl5d=$this->$sdou39->brjr5f($wcjq30);}return $this->hujt16($tdpl5d,$urpt59,$urpt59->nmqv60());}/**
* Prepare a response by transforming and formatting it correctly.
*
* @param mixed $response
* @param \Dingo\Api\Http\Request $request
* @param string $format
*
* @return \Dingo\Api\Http\Response
*/ protected function hujt16($tdpl5d,Request $urpt59,$gajw61){if($tdpl5d instanceof IlluminateResponse){$tdpl5d=Response::kdye62($tdpl5d);}elseif($tdpl5d instanceof JsonResponse){$tdpl5d=Response::iamn63($tdpl5d);}if($tdpl5d instanceof Response){try{$tdpl5d->yfva64($gajw61)->ritc65($tdpl5d)->jccq66($urpt59);}catch(NotAcceptableHttpException $wcjq30){return $this->$sdou39->brjr5f($wcjq30);}$tdpl5d=$tdpl5d->aovw67($gajw61);}if($tdpl5d->ifca68()&&$this->pgci18()){if(!$tdpl5d->$cgmz69->mqcn6a(base64_decode('RVRhZw=='))){$tdpl5d->zwzj6b(sha1($tdpl5d->vtre6c()?:''));}$tdpl5d->kogi6d($urpt59);}return $tdpl5d;}/**
* Gather the middleware for the given route.
*
* @param mixed $route
*
* @return array
*/ public function wrws17($rfkj6e){return $this->$njyh38->wrws17($rfkj6e);}/**
* Determine if the request is conditional.
*
* @return bool
*/ protected function pgci18(){return $this->lluf1b()->pgci18();}/**
* Set the conditional request.
*
* @param bool $conditionalRequest
*
* @return void
*/ public function kbdq19($pwav33){$this->$ffnu42=$pwav33;}/**
* Get the current request instance.
*
* @return \Dingo\Api\Http\Request
*/ public function hhri1a(){return $this->$nzjh3a[base64_decode('cmVxdWVzdA==')];}/**
* Get the current route instance.
*
* @return \Dingo\Api\Routing\Route
*/ public function lluf1b(){if(isset($this->$xgkl5a)){return $this->$xgkl5a;}elseif(!$this->sulk25()||!$rfkj6e=$this->$nzjh3a[base64_decode('cmVxdWVzdA==')]->lxhk6f()){return;}return $this->$xgkl5a=$this->bkdt1d($rfkj6e);}/**
* Get the currently dispatched route instance.
*
* @return \Illuminate\Routing\Route
*/ public function wyzv1c(){return $this->lluf1b();}/**
* Create a new route instance from an adapter route.
*
* @param array|\Illuminate\Routing\Route $route
*
* @return \Dingo\Api\Routing\Route
*/ public function bkdt1d($rfkj6e){return new mbdu70($this->$njyh38,$this->$nzjh3a,$this->$nzjh3a[base64_decode('cmVxdWVzdA==')],$rfkj6e);}/**
* Set the current route instance.
*
* @param \Dingo\Api\Routing\Route $route
*
* @return void
*/ public function yxwr1e(Route $rfkj6e){$this->$xgkl5a=$rfkj6e;}/**
* Determine if the router has a group stack.
*
* @return bool
*/ public function rhlk1f(){return!empty($this->$icqy44);}/**
* Get the prefix from the last group on the stack.
*
* @return string
*/ public function sklr20(){if(empty($this->$icqy44)){return '';}$elmg71=end($this->$icqy44);return $elmg71[base64_decode('cHJlZml4')];}/**
* Get all routes registered on the adapter.
*
* @param string $version
*
* @return mixed
*/ public function mhma21($mocc3d=null){$emcp72=$this->$njyh38->yjte73($mocc3d);if(!is_null($mocc3d)){$emcp72=[$mocc3d=>$emcp72];}$lfme74=[];foreach($emcp72 as $asvc75=>$lsth58){$lfme74[$asvc75]=new vvct76($this->$nzjh3a[base64_decode('cmVxdWVzdA==')]);foreach($lsth58 as $rfkj6e){$rfkj6e=$this->bkdt1d($rfkj6e);$lfme74[$asvc75]->wdpe77($rfkj6e);}}return is_null($mocc3d)?$lfme74:$lfme74[$mocc3d];}/**
* Get the raw adapter routes.
*
* @return array
*/ public function vygp22(){return $this->$njyh38->mhma21();}/**
* Set the raw adapter routes.
*
* @param array $routes
*
* @return void
*/ public function ngem23(array$emcp72){$this->$njyh38->gfbb78($emcp72);$this->$nzjh3a->wknr5b(base64_decode('YXBpLnJvdXRlcw=='),$this->mhma21());}/**
* Get the number of routes dispatched.
*
* @return int
*/ public function mtdc24(){return $this->$ydmh5c;}/**
* Determine if the router has dispatched any routes.
*
* @return bool
*/ public function sulk25(){return $this->$ydmh5c>0;}/**
* Get the current route name.
*
* @return string|null
*/ public function xogh26(){return $this->wyzv1c()?$this->wyzv1c()->blgu79():null;}/**
* Alias for the "currentRouteNamed" method.
*
* @param mixed string
*
* @return bool
*/ public function wtea27(){foreach(func_get_args()as $atgp7a){if(Str::wtea27($atgp7a,$this->xogh26())){return true;}}return false;}/**
* Determine if the current route matches a given name.
*
* @param string $name
*
* @return bool
*/ public function yasy28($hswi4a){return $this->wyzv1c()?$this->wyzv1c()->blgu79()==$hswi4a:false;}/**
* Get the current route action.
*
* @return string|null
*/ public function vbqs29(){if(!$rfkj6e=$this->wyzv1c()){return;}$cwof46=$rfkj6e->aamr7b();return is_string($cwof46[base64_decode('dXNlcw==')])?$cwof46[base64_decode('dXNlcw==')]:null;}/**
* Alias for the "currentRouteUses" method.
*
* @param mixed string
*
* @return bool
*/ public function czgh2a(){foreach(func_get_args()as $atgp7a){if(Str::wtea27($atgp7a,$this->vbqs29())){return true;}}return false;}/**
* Determine if the current route action matches a given action.
*
* @param string $action
*
* @return bool
*/ public function bjja2b($cwof46){return $this->vbqs29()==$cwof46;}/**
* Flush the router's middleware groups.
*
* @return $this
*/ public function fjkn2c(){return $this;}}?>
Did this file decode correctly?
Original Code
<?php namespace Dingo\Api\Routing;use Closure;use Dingo\Api\Contract\Debug\ExceptionHandler;use Dingo\Api\Contract\Routing\Adapter;use Dingo\Api\Http\InternalRequest;use Dingo\Api\Http\Request;use Dingo\Api\Http\Response;use Exception;use Illuminate\Container\Container;use Illuminate\Http\JsonResponse;use Illuminate\Http\Response as IlluminateResponse;use Illuminate\Support\Arr;use Illuminate\Support\Str;use RuntimeException;use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;class ghfs2d{/**
* Routing adapter instance.
*
* @var \Dingo\Api\Contract\Routing\Adapter
*/ protected $rriu2e;/**
* Accept parser instance.
*
* @var \Dingo\Api\Http\Parser\Accept
*/ protected $vrvp2f;/**
* Exception handler instance.
*
* @var \Dingo\Api\Contract\Debug\ExceptionHandler
*/ protected $wcjq30;/**
* Application container instance.
*
* @var \Illuminate\Container\Container
*/ protected $xsde31;/**
* Group stack array.
*
* @var array
*/ protected $vqpa32=[];/**
* Indicates if the request is conditional.
*
* @var bool
*/ protected $pwav33=true;/**
* The current route being dispatched.
*
* @var \Dingo\Api\Routing\Route
*/ protected $xytx34;/**
* The number of routes dispatched.
*
* @var int
*/ protected $apyl35=0;/**
* The API domain.
*
* @var string
*/ protected $yndr36;/**
* The API prefix.
*
* @var string
*/ protected $orik37;/**
* Create a new router instance.
*
* @param \Dingo\Api\Contract\Routing\Adapter $adapter
* @param \Dingo\Api\Contract\Debug\ExceptionHandler $exception
* @param \Illuminate\Container\Container $container
* @param string $domain
* @param string $prefix
*
* @return void
*/ public function dspz0(Adapter $rriu2e,ExceptionHandler $wcjq30,Container $xsde31,$yndr36,$orik37){$this->$njyh38=$rriu2e;$this->$sdou39=$wcjq30;$this->$nzjh3a=$xsde31;$this->$jasw3b=$yndr36;$this->$trne3c=$orik37;}/**
* An alias for calling the group method, allows a more fluent API
* for registering a new API version group with optional
* attributes and a required callback.
*
* This method can be called without the third parameter, however,
* the callback should always be the last parameter.
*
* @param array|string $version
* @param array|callable $second
* @param callable $third
*
* @return void
*/ public function tslx1($mocc3d,$xzvg3e,$qngo3f=null){if(func_num_args()==2){[$mocc3d,$krcm40,$eqzr41]=array_merge(func_get_args(),[[]]);}else{[$mocc3d,$eqzr41,$krcm40]=func_get_args();}$eqzr41=array_merge($eqzr41,[base64_decode('dmVyc2lvbg==')=>$mocc3d]);$this->yyrj2($eqzr41,$krcm40);}/**
* Create a new route group.
*
* @param array $attributes
* @param callable $callback
*
* @return void
*/ public function yyrj2(array$eqzr41,$krcm40){if(!isset($eqzr41[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')])){$eqzr41[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')]=$this->$ffnu42;}$eqzr41=$this->hvgrf($eqzr41);if(!isset($eqzr41[base64_decode('dmVyc2lvbg==')])){throw new gjzf43(base64_decode('QSB2ZXJzaW9uIGlzIHJlcXVpcmVkIGZvciBhbiBBUEkgZ3JvdXAgZGVmaW5pdGlvbi4='));}else{$eqzr41[base64_decode('dmVyc2lvbg==')]=(array)$eqzr41[base64_decode('dmVyc2lvbg==')];}if((!isset($eqzr41[base64_decode('cHJlZml4')])||empty($eqzr41[base64_decode('cHJlZml4')]))&&isset($this->$trne3c)){$eqzr41[base64_decode('cHJlZml4')]=$this->$trne3c;}if((!isset($eqzr41[base64_decode('ZG9tYWlu')])||empty($eqzr41[base64_decode('ZG9tYWlu')]))&&isset($this->$jasw3b)){$eqzr41[base64_decode('ZG9tYWlu')]=$this->$jasw3b;}$this->$icqy44[]=$eqzr41;call_user_func($krcm40,$this);array_pop($this->$icqy44);}/**
* Create a new GET route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function gfkl3($biaj45,$cwof46){return $this->wfepd([base64_decode('R0VU'),base64_decode('SEVBRA==')],$biaj45,$cwof46);}/**
* Create a new POST route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function nuws4($biaj45,$cwof46){return $this->wfepd(base64_decode('UE9TVA=='),$biaj45,$cwof46);}/**
* Create a new PUT route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function lflt5($biaj45,$cwof46){return $this->wfepd(base64_decode('UFVU'),$biaj45,$cwof46);}/**
* Create a new PATCH route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function gbbo6($biaj45,$cwof46){return $this->wfepd(base64_decode('UEFUQ0g='),$biaj45,$cwof46);}/**
* Create a new DELETE route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function niju7($biaj45,$cwof46){return $this->wfepd(base64_decode('REVMRVRF'),$biaj45,$cwof46);}/**
* Create a new OPTIONS route.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function qjth8($biaj45,$cwof46){return $this->wfepd(base64_decode('T1BUSU9OUw=='),$biaj45,$cwof46);}/**
* Create a new route that responding to all verbs.
*
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function qbwj9($biaj45,$cwof46){$ruzw47=[base64_decode('R0VU'),base64_decode('SEVBRA=='),base64_decode('UE9TVA=='),base64_decode('UFVU'),base64_decode('UEFUQ0g='),base64_decode('REVMRVRF')];return $this->wfepd($ruzw47,$biaj45,$cwof46);}/**
* Create a new route with the given verbs.
*
* @param array|string $methods
* @param string $uri
* @param array|string|callable $action
*
* @return mixed
*/ public function haina($gpnb48,$biaj45,$cwof46){return $this->wfepd(array_map(base64_decode('c3RydG91cHBlcg=='),(array)$gpnb48),$biaj45,$cwof46);}/**
* Register an array of resources.
*
* @param array $resources
*
* @return void
*/ public function rvpqb(array$efgz49){foreach($efgz49 as $hswi4a=>$mnor4b){$grvk4c=[];if(is_array($mnor4b)){[$mnor4b,$grvk4c]=$mnor4b;}$this->jbcbc($hswi4a,$mnor4b,$grvk4c);}}/**
* Register a resource controller.
*
* @param string $name
* @param string $controller
* @param array $options
*
* @return void
*/ public function jbcbc($hswi4a,$zbdr4d,array$grvk4c=[]){if($this->$nzjh3a->vwrq4e(ResourceRegistrar::class)){$xpat4f=$this->$nzjh3a->yajw50(ResourceRegistrar::class);}else{$xpat4f=new utyy51($this);}$xpat4f->oncj52($hswi4a,$zbdr4d,$grvk4c);}/**
* Add a route to the routing adapter.
*
* @param string|array $methods
* @param string $uri
* @param string|array|callable $action
*
* @return mixed
*/ public function wfepd($gpnb48,$biaj45,$cwof46){if(is_string($cwof46)){$cwof46=[base64_decode('dXNlcw==')=>$cwof46,base64_decode('Y29udHJvbGxlcg==')=>$cwof46];}elseif($cwof46 instanceof Closure){$cwof46=[$cwof46];}elseif(is_array($cwof46)){if(is_string(Arr::yepi53($cwof46))&&class_exists(Arr::yepi53($cwof46))&&count($cwof46)==2){$cwof46=implode(base64_decode('QA=='),$cwof46);$cwof46=[base64_decode('dXNlcw==')=>$cwof46,base64_decode('Y29udHJvbGxlcg==')=>$cwof46];}}$cwof46=$this->hvgrf($cwof46);$cwof46=$this->zajze($cwof46);$biaj45=$biaj45===base64_decode('Lw==')?$biaj45:base64_decode('Lw==').trim($biaj45,base64_decode('Lw=='));if(!empty($cwof46[base64_decode('cHJlZml4')])){$biaj45=base64_decode('Lw==').ltrim(rtrim(trim($cwof46[base64_decode('cHJlZml4')],base64_decode('Lw==')).base64_decode('Lw==').trim($biaj45,base64_decode('Lw==')),base64_decode('Lw==')),base64_decode('Lw=='));unset($cwof46[base64_decode('cHJlZml4')]);}$cwof46[base64_decode('dXJp')]=$biaj45;return $this->$njyh38->wfepd((array)$gpnb48,$cwof46[base64_decode('dmVyc2lvbg==')],$biaj45,$cwof46);}/**
* Add the controller preparation middleware to the beginning of the routes middleware.
*
* @param array $action
*
* @return array
*/ protected function zajze(array$cwof46){array_unshift($cwof46[base64_decode('bWlkZGxld2FyZQ==')],base64_decode('YXBpLmNvbnRyb2xsZXJz'));return $cwof46;}/**
* Merge the last groups attributes.
*
* @param array $attributes
*
* @return array
*/ protected function hvgrf(array$eqzr41){if(empty($this->$icqy44)){return $this->jrbg10($eqzr41,[]);}return $this->jrbg10($eqzr41,end($this->$icqy44));}/**
* Merge the given group attributes.
*
* @param array $new
* @param array $old
*
* @return array
*/ protected function jrbg10(array$vchi54,array$waou55){$vchi54[base64_decode('bmFtZXNwYWNl')]=$this->xjgy13($vchi54,$waou55);$vchi54[base64_decode('cHJlZml4')]=$this->fgpk14($vchi54,$waou55);foreach([base64_decode('bWlkZGxld2FyZQ=='),base64_decode('cHJvdmlkZXJz'),base64_decode('c2NvcGVz'),base64_decode('YmVmb3Jl'),base64_decode('YWZ0ZXI=')]as $nvbd56){$vchi54[$nvbd56]=$this->rtgc11($nvbd56,$vchi54);}if(isset($vchi54[base64_decode('ZG9tYWlu')])){unset($waou55[base64_decode('ZG9tYWlu')]);}if(isset($vchi54[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')])){unset($waou55[base64_decode('Y29uZGl0aW9uYWxSZXF1ZXN0')]);}if(isset($vchi54[base64_decode('dXNlcw==')])){$vchi54[base64_decode('dXNlcw==')]=$this->luln12($vchi54,$waou55);}$vchi54[base64_decode('d2hlcmU=')]=array_merge(Arr::gfkl3($waou55,base64_decode('d2hlcmU='),[]),Arr::gfkl3($vchi54,base64_decode('d2hlcmU='),[]));if(isset($waou55[base64_decode('YXM=')])){$vchi54[base64_decode('YXM=')]=trim($waou55[base64_decode('YXM=')].base64_decode('Lg==').Arr::gfkl3($vchi54,base64_decode('YXM='),''),base64_decode('Lg=='));}return array_merge_recursive(Arr::htkz57($waou55,[base64_decode('bmFtZXNwYWNl'),base64_decode('cHJlZml4'),base64_decode('d2hlcmU='),base64_decode('YXM=')]),$vchi54);}/**
* Format an array based option in a route action.
*
* @param string $option
* @param array $new
*
* @return array
*/ protected function rtgc11($nvbd56,array$vchi54){$lsth58=Arr::gfkl3($vchi54,$nvbd56,[]);return is_string($lsth58)?explode(base64_decode('fA=='),$lsth58):$lsth58;}/**
* Format the uses key in a route action.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function luln12(array$vchi54,array$waou55){if(isset($waou55[base64_decode('bmFtZXNwYWNl')])&&is_string($vchi54[base64_decode('dXNlcw==')])&&strpos($vchi54[base64_decode('dXNlcw==')],base64_decode('XFw='))!==0){return $waou55[base64_decode('bmFtZXNwYWNl')].base64_decode('XFw=').$vchi54[base64_decode('dXNlcw==')];}return $vchi54[base64_decode('dXNlcw==')];}/**
* Format the namespace for the new group attributes.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function xjgy13(array$vchi54,array$waou55){if(isset($vchi54[base64_decode('bmFtZXNwYWNl')])&&isset($waou55[base64_decode('bmFtZXNwYWNl')])){return trim($waou55[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw=')).base64_decode('XFw=').trim($vchi54[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw='));}elseif(isset($vchi54[base64_decode('bmFtZXNwYWNl')])){return trim($vchi54[base64_decode('bmFtZXNwYWNl')],base64_decode('XFw='));}return Arr::gfkl3($waou55,base64_decode('bmFtZXNwYWNl'));}/**
* Format the prefix for the new group attributes.
*
* @param array $new
* @param array $old
*
* @return string
*/ protected function fgpk14($vchi54,$waou55){if(isset($vchi54[base64_decode('cHJlZml4')])){return trim(Arr::gfkl3($waou55,base64_decode('cHJlZml4')),base64_decode('Lw==')).base64_decode('Lw==').trim($vchi54[base64_decode('cHJlZml4')],base64_decode('Lw=='));}return Arr::gfkl3($waou55,base64_decode('cHJlZml4'),'');}/**
* Dispatch a request via the adapter.
*
* @param \Dingo\Api\Http\Request $request
*
* @throws \Exception
*
* @return \Dingo\Api\Http\Response
*/ public function zqup15(Request $urpt59){$this->$xgkl5a=null;$this->$nzjh3a->wknr5b(Request::class,$urpt59);$this->$ydmh5c++;try{$tdpl5d=$this->$njyh38->zqup15($urpt59,$urpt59->tslx1());}catch(Exception $wcjq30){if($urpt59 instanceof InternalRequest){throw $wcjq30;}$this->$sdou39->fjze5e($wcjq30);$tdpl5d=$this->$sdou39->brjr5f($wcjq30);}return $this->hujt16($tdpl5d,$urpt59,$urpt59->nmqv60());}/**
* Prepare a response by transforming and formatting it correctly.
*
* @param mixed $response
* @param \Dingo\Api\Http\Request $request
* @param string $format
*
* @return \Dingo\Api\Http\Response
*/ protected function hujt16($tdpl5d,Request $urpt59,$gajw61){if($tdpl5d instanceof IlluminateResponse){$tdpl5d=Response::kdye62($tdpl5d);}elseif($tdpl5d instanceof JsonResponse){$tdpl5d=Response::iamn63($tdpl5d);}if($tdpl5d instanceof Response){try{$tdpl5d->yfva64($gajw61)->ritc65($tdpl5d)->jccq66($urpt59);}catch(NotAcceptableHttpException $wcjq30){return $this->$sdou39->brjr5f($wcjq30);}$tdpl5d=$tdpl5d->aovw67($gajw61);}if($tdpl5d->ifca68()&&$this->pgci18()){if(!$tdpl5d->$cgmz69->mqcn6a(base64_decode('RVRhZw=='))){$tdpl5d->zwzj6b(sha1($tdpl5d->vtre6c()?:''));}$tdpl5d->kogi6d($urpt59);}return $tdpl5d;}/**
* Gather the middleware for the given route.
*
* @param mixed $route
*
* @return array
*/ public function wrws17($rfkj6e){return $this->$njyh38->wrws17($rfkj6e);}/**
* Determine if the request is conditional.
*
* @return bool
*/ protected function pgci18(){return $this->lluf1b()->pgci18();}/**
* Set the conditional request.
*
* @param bool $conditionalRequest
*
* @return void
*/ public function kbdq19($pwav33){$this->$ffnu42=$pwav33;}/**
* Get the current request instance.
*
* @return \Dingo\Api\Http\Request
*/ public function hhri1a(){return $this->$nzjh3a[base64_decode('cmVxdWVzdA==')];}/**
* Get the current route instance.
*
* @return \Dingo\Api\Routing\Route
*/ public function lluf1b(){if(isset($this->$xgkl5a)){return $this->$xgkl5a;}elseif(!$this->sulk25()||!$rfkj6e=$this->$nzjh3a[base64_decode('cmVxdWVzdA==')]->lxhk6f()){return;}return $this->$xgkl5a=$this->bkdt1d($rfkj6e);}/**
* Get the currently dispatched route instance.
*
* @return \Illuminate\Routing\Route
*/ public function wyzv1c(){return $this->lluf1b();}/**
* Create a new route instance from an adapter route.
*
* @param array|\Illuminate\Routing\Route $route
*
* @return \Dingo\Api\Routing\Route
*/ public function bkdt1d($rfkj6e){return new mbdu70($this->$njyh38,$this->$nzjh3a,$this->$nzjh3a[base64_decode('cmVxdWVzdA==')],$rfkj6e);}/**
* Set the current route instance.
*
* @param \Dingo\Api\Routing\Route $route
*
* @return void
*/ public function yxwr1e(Route $rfkj6e){$this->$xgkl5a=$rfkj6e;}/**
* Determine if the router has a group stack.
*
* @return bool
*/ public function rhlk1f(){return!empty($this->$icqy44);}/**
* Get the prefix from the last group on the stack.
*
* @return string
*/ public function sklr20(){if(empty($this->$icqy44)){return '';}$elmg71=end($this->$icqy44);return $elmg71[base64_decode('cHJlZml4')];}/**
* Get all routes registered on the adapter.
*
* @param string $version
*
* @return mixed
*/ public function mhma21($mocc3d=null){$emcp72=$this->$njyh38->yjte73($mocc3d);if(!is_null($mocc3d)){$emcp72=[$mocc3d=>$emcp72];}$lfme74=[];foreach($emcp72 as $asvc75=>$lsth58){$lfme74[$asvc75]=new vvct76($this->$nzjh3a[base64_decode('cmVxdWVzdA==')]);foreach($lsth58 as $rfkj6e){$rfkj6e=$this->bkdt1d($rfkj6e);$lfme74[$asvc75]->wdpe77($rfkj6e);}}return is_null($mocc3d)?$lfme74:$lfme74[$mocc3d];}/**
* Get the raw adapter routes.
*
* @return array
*/ public function vygp22(){return $this->$njyh38->mhma21();}/**
* Set the raw adapter routes.
*
* @param array $routes
*
* @return void
*/ public function ngem23(array$emcp72){$this->$njyh38->gfbb78($emcp72);$this->$nzjh3a->wknr5b(base64_decode('YXBpLnJvdXRlcw=='),$this->mhma21());}/**
* Get the number of routes dispatched.
*
* @return int
*/ public function mtdc24(){return $this->$ydmh5c;}/**
* Determine if the router has dispatched any routes.
*
* @return bool
*/ public function sulk25(){return $this->$ydmh5c>0;}/**
* Get the current route name.
*
* @return string|null
*/ public function xogh26(){return $this->wyzv1c()?$this->wyzv1c()->blgu79():null;}/**
* Alias for the "currentRouteNamed" method.
*
* @param mixed string
*
* @return bool
*/ public function wtea27(){foreach(func_get_args()as $atgp7a){if(Str::wtea27($atgp7a,$this->xogh26())){return true;}}return false;}/**
* Determine if the current route matches a given name.
*
* @param string $name
*
* @return bool
*/ public function yasy28($hswi4a){return $this->wyzv1c()?$this->wyzv1c()->blgu79()==$hswi4a:false;}/**
* Get the current route action.
*
* @return string|null
*/ public function vbqs29(){if(!$rfkj6e=$this->wyzv1c()){return;}$cwof46=$rfkj6e->aamr7b();return is_string($cwof46[base64_decode('dXNlcw==')])?$cwof46[base64_decode('dXNlcw==')]:null;}/**
* Alias for the "currentRouteUses" method.
*
* @param mixed string
*
* @return bool
*/ public function czgh2a(){foreach(func_get_args()as $atgp7a){if(Str::wtea27($atgp7a,$this->vbqs29())){return true;}}return false;}/**
* Determine if the current route action matches a given action.
*
* @param string $action
*
* @return bool
*/ public function bjja2b($cwof46){return $this->vbqs29()==$cwof46;}/**
* Flush the router's middleware groups.
*
* @return $this
*/ public function fjkn2c(){return $this;}}?>
Function Calls
None |
Stats
MD5 | 1f1556c8a73c06e29917a7a128942c8d |
Eval Count | 0 |
Decode Time | 108 ms |