<?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 srcDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($pathinfo)
{
$allow = $allowSchemes = array();
if ($ret = $this->doMatch($pathinfo, $allow, $allowSchemes)) {
return $ret;
}
if ($allow) {
throw new MethodNotAllowedException(array_keys($allow));
}
if (!in_array($this->context->getMethod(), array('HEAD', 'GET'), true)) {
// no-op
} elseif ($allowSchemes) {
redirect_scheme:
$scheme = $this->context->getScheme();
$this->context->setScheme(key($allowSchemes));
try {
if ($ret = $this->doMatch($pathinfo)) {
return $this->redirect($pathinfo, $ret['_route'], $this->context->getScheme()) + $ret;
}
} finally {
$this->context->setScheme($scheme);
}
} elseif ('/' !== $pathinfo) {
$pathinfo = '/' !== $pathinfo[-1] ? $pathinfo.'/' : substr($pathinfo, 0, -1);
if ($ret = $this->doMatch($pathinfo, $allow, $allowSchemes)) {
return $this->redirect($pathinfo, $ret['_route']) + $ret;
}
if ($allowSchemes) {
goto redirect_scheme;
}
}
throw new ResourceNotFoundException();
}
private function doMatch(string $rawPathinfo, array &$allow = array(), array &$allowSchemes = array()): ?array
{
$allow = $allowSchemes = array();
$pathinfo = rawurldecode($rawPathinfo);
$context = $this->context;
$requestMethod = $canonicalMethod = $context->getMethod();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
switch ($pathinfo) {
case '/api/webhook/subscribe':
// get_webhook_subscribe
$ret = array('_route' => 'get_webhook_subscribe', '_controller' => 'App\\Adapter\\Api\\Controller\\WebhookController::getSubscribeAction', '_format' => 'json');
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_webhook_subscribe;
}
return $ret;
not_get_webhook_subscribe:
// post_webhook_subscribe
$ret = array('_route' => 'post_webhook_subscribe', '_controller' => 'App\\Adapter\\Api\\Controller\\WebhookController::postSubscribeAction', '_format' => 'json');
if (!isset(($a = array('POST' => 0))[$requestMethod])) {
$allow += $a;
goto not_post_webhook_subscribe;
}
return $ret;
not_post_webhook_subscribe:
break;
case '/rest-doc':
// app.swagger_ui
if ((!preg_match("/hubusa.altitudegroupinc.com/", $context->getHost()))) {
$ret = array('_route' => 'app.swagger_ui', '_controller' => 'nelmio_api_doc.controller.swagger_ui');
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_appswagger_ui;
}
return $ret;
}
not_appswagger_ui:
break;
default:
$routes = array(
'/_profiler/' => array(array('_route' => '_profiler_home', '_controller' => 'web_profiler.controller.profiler::homeAction'), null, null, null),
'/_profiler/search' => array(array('_route' => '_profiler_search', '_controller' => 'web_profiler.controller.profiler::searchAction'), null, null, null),
'/_profiler/search_bar' => array(array('_route' => '_profiler_search_bar', '_controller' => 'web_profiler.controller.profiler::searchBarAction'), null, null, null),
'/_profiler/phpinfo' => array(array('_route' => '_profiler_phpinfo', '_controller' => 'web_profiler.controller.profiler::phpinfoAction'), null, null, null),
'/_profiler/open' => array(array('_route' => '_profiler_open_file', '_controller' => 'web_profiler.controller.profiler::openAction'), null, null, null),
'/api/login_check' => array(array('_route' => 'api_login_check'), null, null, null),
'/api/user/list' => array(array('_route' => 'get_user_list', '_controller' => 'App\\Adapter\\Api\\Controller\\UserController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/user' => array(array('_route' => 'post_user', '_controller' => 'App\\Adapter\\Api\\Controller\\UserController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/invoice/list' => array(array('_route' => 'get_invoice_list', '_controller' => 'App\\Adapter\\Api\\Controller\\InvoiceController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/invoice' => array(array('_route' => 'post_invoice', '_controller' => 'App\\Adapter\\Api\\Controller\\InvoiceController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/creditmemo/list' => array(array('_route' => 'get_creditmemo_list', '_controller' => 'App\\Adapter\\Api\\Controller\\CreditMemoController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/creditmemo' => array(array('_route' => 'post_creditmemo', '_controller' => 'App\\Adapter\\Api\\Controller\\CreditMemoController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/payment/list' => array(array('_route' => 'get_payment_list', '_controller' => 'App\\Adapter\\Api\\Controller\\PaymentController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/payment' => array(array('_route' => 'post_payment', '_controller' => 'App\\Adapter\\Api\\Controller\\PaymentController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/payments' => array(array('_route' => 'post_payments', '_controller' => 'App\\Adapter\\Api\\Controller\\PaymentsController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/order/list' => array(array('_route' => 'get_order_list', '_controller' => 'App\\Adapter\\Api\\Controller\\OrderController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/order' => array(array('_route' => 'post_order', '_controller' => 'App\\Adapter\\Api\\Controller\\OrderController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/itemreceipt/list' => array(array('_route' => 'get_itemreceipt_list', '_controller' => 'App\\Adapter\\Api\\Controller\\ItemReceiptController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/itemreceipt' => array(array('_route' => 'post_itemreceipt', '_controller' => 'App\\Adapter\\Api\\Controller\\ItemReceiptController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/bill/list' => array(array('_route' => 'get_bill_list', '_controller' => 'App\\Adapter\\Api\\Controller\\BillController::getListAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/bill' => array(array('_route' => 'post_bill', '_controller' => 'App\\Adapter\\Api\\Controller\\BillController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/initial/sync' => array(array('_route' => 'post_initial_sync', '_controller' => 'App\\Adapter\\Api\\Controller\\SyncController::postSyncAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/auth/new/account' => array(array('_route' => 'post_auth_new_account', '_controller' => 'App\\Adapter\\Api\\Controller\\AuthController::postNewAccountAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/auth/refresh' => array(array('_route' => 'post_auth_refresh', '_controller' => 'App\\Adapter\\Api\\Controller\\AuthController::postRefreshAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/tools/qwc' => array(array('_route' => 'get_tools_qwc', '_controller' => 'App\\Adapter\\Api\\Controller\\ToolsController::getQwcAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/tools/qwc/password' => array(array('_route' => 'get_tools_qwc_password', '_controller' => 'App\\Adapter\\Api\\Controller\\ToolsController::getQwcPasswordAction', '_format' => 'json'), null, array('GET' => 0), null),
'/api/privileges' => array(array('_route' => 'post_privileges', '_controller' => 'App\\Adapter\\Api\\Controller\\PrivilegesController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/api/customersync' => array(array('_route' => 'post_customersync', '_controller' => 'App\\Adapter\\Api\\Controller\\CustomerSyncController::postAction', '_format' => 'json'), null, array('POST' => 0), null),
'/' => array(array('_route' => 'home', '_controller' => 'App\\Controller\\IndexController::index'), null, null, null),
'/qbwc/qbsoap' => array(array('_route' => 'qbsoap_route', '_controller' => 'App\\Adapter\\Qbwc\\Controller\\QbSoapController::runWebConnectorMethods'), null, null, null),
);
if (!isset($routes[$pathinfo])) {
break;
}
list($ret, $requiredHost, $requiredMethods, $requiredSchemes) = $routes[$pathinfo];
$hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
if ($hasRequiredScheme) {
$allow += $requiredMethods;
}
break;
}
if (!$hasRequiredScheme) {
$allowSchemes += $requiredSchemes;
break;
}
return $ret;
}
$matchedPathinfo = $pathinfo;
$regexList = array(
0 => '{^(?'
.'|/_(?'
.'|error/(\\d+)(?:\\.([^/]++))?(*:38)'
.'|wdt/([^/]++)(*:57)'
.'|profiler/([^/]++)(?'
.'|/(?'
.'|search/results(*:102)'
.'|router(*:116)'
.'|exception(?'
.'|(*:136)'
.'|\\.css(*:149)'
.')'
.')'
.'|(*:159)'
.')'
.')'
.'|/api/(?'
.'|user/([^/]++)(?'
.'|(*:193)'
.')'
.'|i(?'
.'|nvoice/([^/]++)(?'
.'|(*:224)'
.')'
.'|temreceipt/([^/]++)(?'
.'|(*:255)'
.')'
.')'
.'|creditmemo/([^/]++)(?'
.'|(*:287)'
.')'
.'|payment/([^/]++)(?'
.'|(*:315)'
.')'
.'|order/([^/]++)(?'
.'|(*:341)'
.')'
.'|bill/([^/]++)(?'
.'|(*:366)'
.')'
.')'
.')$}sD',
);
foreach ($regexList as $offset => $regex) {
while (preg_match($regex, $matchedPathinfo, $matches)) {
switch ($m = (int) $matches['MARK']) {
case 193:
$matches = array('id' => $matches[1] ?? null);
// get_user
$ret = $this->mergeDefaults(array('_route' => 'get_user') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\UserController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_user;
}
return $ret;
not_get_user:
// delete_user
$ret = $this->mergeDefaults(array('_route' => 'delete_user') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\UserController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_user;
}
return $ret;
not_delete_user:
break;
case 224:
$matches = array('id' => $matches[1] ?? null);
// get_invoice
$ret = $this->mergeDefaults(array('_route' => 'get_invoice') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\InvoiceController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_invoice;
}
return $ret;
not_get_invoice:
// delete_invoice
$ret = $this->mergeDefaults(array('_route' => 'delete_invoice') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\InvoiceController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_invoice;
}
return $ret;
not_delete_invoice:
break;
case 255:
$matches = array('id' => $matches[1] ?? null);
// get_itemreceipt
$ret = $this->mergeDefaults(array('_route' => 'get_itemreceipt') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\ItemReceiptController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_itemreceipt;
}
return $ret;
not_get_itemreceipt:
// delete_itemreceipt
$ret = $this->mergeDefaults(array('_route' => 'delete_itemreceipt') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\ItemReceiptController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_itemreceipt;
}
return $ret;
not_delete_itemreceipt:
break;
case 287:
$matches = array('id' => $matches[1] ?? null);
// get_creditmemo
$ret = $this->mergeDefaults(array('_route' => 'get_creditmemo') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\CreditMemoController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_creditmemo;
}
return $ret;
not_get_creditmemo:
// delete_creditmemo
$ret = $this->mergeDefaults(array('_route' => 'delete_creditmemo') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\CreditMemoController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_creditmemo;
}
return $ret;
not_delete_creditmemo:
break;
case 315:
$matches = array('id' => $matches[1] ?? null);
// get_payment
$ret = $this->mergeDefaults(array('_route' => 'get_payment') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\PaymentController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_payment;
}
return $ret;
not_get_payment:
// delete_payment
$ret = $this->mergeDefaults(array('_route' => 'delete_payment') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\PaymentController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_payment;
}
return $ret;
not_delete_payment:
break;
case 341:
$matches = array('id' => $matches[1] ?? null);
// get_order
$ret = $this->mergeDefaults(array('_route' => 'get_order') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\OrderController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_order;
}
return $ret;
not_get_order:
// delete_order
$ret = $this->mergeDefaults(array('_route' => 'delete_order') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\OrderController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_order;
}
return $ret;
not_delete_order:
break;
case 366:
$matches = array('id' => $matches[1] ?? null);
// get_bill
$ret = $this->mergeDefaults(array('_route' => 'get_bill') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\BillController::getAction', '_format' => 'json'));
if (!isset(($a = array('GET' => 0))[$canonicalMethod])) {
$allow += $a;
goto not_get_bill;
}
return $ret;
not_get_bill:
// delete_bill
$ret = $this->mergeDefaults(array('_route' => 'delete_bill') + $matches, array('_controller' => 'App\\Adapter\\Api\\Controller\\BillController::deleteAction', '_format' => 'json'));
if (!isset(($a = array('DELETE' => 0))[$requestMethod])) {
$allow += $a;
goto not_delete_bill;
}
return $ret;
not_delete_bill:
break;
default:
$routes = array(
38 => array(array('_route' => '_twig_error_test', '_controller' => 'twig.controller.preview_error::previewErrorPageAction', '_format' => 'html'), array('code', '_format'), null, null),
57 => array(array('_route' => '_wdt', '_controller' => 'web_profiler.controller.profiler::toolbarAction'), array('token'), null, null),
102 => array(array('_route' => '_profiler_search_results', '_controller' => 'web_profiler.controller.profiler::searchResultsAction'), array('token'), null, null),
116 => array(array('_route' => '_profiler_router', '_controller' => 'web_profiler.controller.router::panelAction'), array('token'), null, null),
136 => array(array('_route' => '_profiler_exception', '_controller' => 'web_profiler.controller.exception::showAction'), array('token'), null, null),
149 => array(array('_route' => '_profiler_exception_css', '_controller' => 'web_profiler.controller.exception::cssAction'), array('token'), null, null),
159 => array(array('_route' => '_profiler', '_controller' => 'web_profiler.controller.profiler::panelAction'), array('token'), null, null),
);
list($ret, $vars, $requiredMethods, $requiredSchemes) = $routes[$m];
foreach ($vars as $i => $v) {
if (isset($matches[1 + $i])) {
$ret[$v] = $matches[1 + $i];
}
}
$hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
if ($hasRequiredScheme) {
$allow += $requiredMethods;
}
break;
}
if (!$hasRequiredScheme) {
$allowSchemes += $requiredSchemes;
break;
}
return $ret;
}
if (366 === $m) {
break;
}
$regex = substr_replace($regex, 'F', $m - $offset, 1 + strlen($m));
$offset += strlen($m);
}
}
if ('/' === $pathinfo && !$allow && !$allowSchemes) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
return null;
}
}