Files
aux-bieaux-legumes/.well-known/cache/dev/ProjectUrlMatcherPaymentCondition.php
2021-04-08 15:57:38 +02:00

114 lines
5.3 KiB
PHP

<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class ProjectUrlMatcherPaymentCondition extends Symfony\Component\Routing\Matcher\UrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = array();
$pathinfo = rawurldecode($rawPathinfo);
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
if (0 === strpos($pathinfo, '/admin/module')) {
// payment_condition_configuration_view
if ('/admin/module/PaymentCondition' === $pathinfo) {
return array ( '_controller' => 'PaymentCondition\\Controller\\AdminController::viewAction', '_route' => 'payment_condition_configuration_view',);
}
if (0 === strpos($pathinfo, '/admin/module/paymentcondition')) {
if (0 === strpos($pathinfo, '/admin/module/paymentcondition/delivery')) {
// payment_delivery_condition_view
if ('/admin/module/paymentcondition/delivery' === $pathinfo) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_payment_delivery_condition_view;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\DeliveryConditionController::viewAction', '_route' => 'payment_delivery_condition_view',);
}
not_payment_delivery_condition_view:
// payment_delivery_condition_save
if ('/admin/module/paymentcondition/delivery' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_payment_delivery_condition_save;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\DeliveryConditionController::saveAction', '_route' => 'payment_delivery_condition_save',);
}
not_payment_delivery_condition_save:
}
if (0 === strpos($pathinfo, '/admin/module/paymentcondition/customerfamily')) {
// payment_customer_family_condition_view
if ('/admin/module/paymentcondition/customerfamily' === $pathinfo) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_payment_customer_family_condition_view;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\CustomerFamilyConditionController::viewAction', '_route' => 'payment_customer_family_condition_view',);
}
not_payment_customer_family_condition_view:
// payment_customer_family_condition_save
if ('/admin/module/paymentcondition/customerfamily' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_payment_customer_family_condition_save;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\CustomerFamilyConditionController::saveAction', '_route' => 'payment_customer_family_condition_save',);
}
not_payment_customer_family_condition_save:
}
if (0 === strpos($pathinfo, '/admin/module/paymentcondition/area')) {
// payment_area_condition_view
if ('/admin/module/paymentcondition/area' === $pathinfo) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_payment_area_condition_view;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\AreaConditionController::viewAction', '_route' => 'payment_area_condition_view',);
}
not_payment_area_condition_view:
// payment_area_condition_save
if ('/admin/module/paymentcondition/area' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_payment_area_condition_save;
}
return array ( '_controller' => 'PaymentCondition\\Controller\\AreaConditionController::saveAction', '_route' => 'payment_area_condition_save',);
}
not_payment_area_condition_save:
}
}
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}