ヤミRoot VoidGate
User / IP
:
216.73.216.143
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
/
Viewing: RestRouteCollection.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; use Symfony\Component\Routing\RouteCollection; /** * Restful route collection. * * @author Konstantin Kudryashov <ever.zet@gmail.com> */ class RestRouteCollection extends RouteCollection { private $singularName; /** * Sets collection singular name. * * @param string $name Singular name */ public function setSingularName($name) { $this->singularName = $name; } /** * Returns collection singular name. * * @return string */ public function getSingularName() { return $this->singularName; } /** * Adds controller prefix to all collection routes. * * @param string $prefix */ public function prependRouteControllersWithPrefix($prefix) { foreach (parent::all() as $route) { $route->setDefault('_controller', $prefix.$route->getDefault('_controller')); } } /** * Sets default format of routes. * * @param string $format */ public function setDefaultFormat($format) { foreach (parent::all() as $route) { // Set default format only if not set already (could be defined in annotation) if (!$route->getDefault('_format')) { $route->setDefault('_format', $format); } } } /** * Returns routes sorted by custom HTTP methods first. * * @return array */ public function all() { $regex = '/'. '(_|^)'. '(get|post|put|delete|patch|head|options|mkcol|propfind|proppatch|lock|unlock|move|copy|link|unlink)_'. // allowed http methods '/i'; $routes = parent::all(); $customMethodRoutes = []; foreach ($routes as $routeName => $route) { if (!preg_match($regex, $routeName)) { $customMethodRoutes[$routeName] = $route; unset($routes[$routeName]); } } return $customMethodRoutes + $routes; } }
Coded With 💗 by
0x6ick