@Route("/")
@Method({"GET"})

@return \Symfony\Component\HttpFoundation\Response
543605
public function profileAction()
    {
        $model = $this->getUser();
        $data = array();

        /** @var ConfiguratorFactory $configuratorFactory */
        $configuratorFactory = $this->getConfiguratorFactory($this->getClassName());
        /** @var CrudConfigurator $crudConfigurator */
        $crudConfigurator = $configuratorFactory->getConfigurator(CrudConfigurator::class);

        foreach ($crudConfigurator->getCrud()->getShowFields() as $key => $property) {
            if ($value = MethodInvoker::invokeGet($model, $property)) {
                array_push($data, array(
                    'name' => $property,
                    'value' => $value,
                ));
            }
        }

        $translator = $this->container->get('translator');
        $translationDomain = $this->container->getParameter('symfonyid.admin.translation_domain');

        return $this->render($this->container->getParameter('symfonyid.admin.themes.profile'), array(
            'data' => $data,
            'menu' => $this->container->getParameter('symfonyid.admin.menu.menu_name'),
            'page_title' => $translator->trans('page.profile.title', array(), $translationDomain),
            'page_description' => $translator->trans('page.profile.description', array(), $translationDomain),
        ));
    }
267458
public function get() {
		$this->RoutedStatus = FALSE;

		if ( ! $this->route->isGet() ) {
			return $this;
		}

		if ( is_callable( $this->callable ) ) {
			//$this->RoutedStatus = FALSE;
			return $this;
		}

		$this->middleware = array( 'before' => array(), 'after' => array() );
		self::$FullRender = '';
		$args             = func_get_args();

		if ( ! empty( self::$group ) ) {

			if ( $args[0] == '/' ) {
				$args[0] = substr( self::$group, 0, - 1 );
			} else {
				$args[0] = self::$group . $args[0];
			}

		}

		array_push( Route::$list, $args[0] );
		$this->setCallable( $args );

		return $this;
	}
758450
public function indexAction()
    {
        $response = $this->getResponse();

        $params = $this->params()->fromRoute();
        if ($params['path'] === '') {
            $response->setStatusCode(404);
            return $response;
        }

        $info = pathinfo($params['path']);

        if ($info['dirname'] === '.') {
            $info['dirname'] = '';
        }

        /* @var $folder \CmsFile\Mapping\FolderInterface */
        $folder  = $this->getFolderService()->getMapper()->findOneByPath('/' . trim($info['dirname'], '/'));
        if (!$folder) {
            $response->setStatusCode(404);
            return $response;
        }

        $file = $folder->getFile($info['basename']);
        if (!$file) {
            $response->setStatusCode(404);
            return $response;
        }

        $response = new Stream;
        $response->setStream(fopen($file, 'r'));
        $response->setStatusCode(200);

        $headers = new Headers;
        $headers->addHeaderLine('Content-Type', $file->getType())
            ->addHeaderLine('Content-Disposition', 'attachment; filename="' . $file->getTitle() . '"')
            ->addHeaderLine('Content-Length', filesize($file));

        $response->setHeaders($headers);

        return $response;
    }
295531
public function get(/* ... */) {
        $args = func_get_args();
        array_unshift($args, $this->cfg);
        return call_user_func_array(array($this, "_get"), $args);
    }
1222981
public function get()
    {
        $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH);

        return $this->getByPath($path, ['Accept' => static::ACCEPT_VERSION]);
    }
1220671
public function route()
    {
        $this->Logger->debug("Request: {$this->Request->getFullURL()}");

        $uri = $this->Request->getAdjustedRequestURI();

//        $uri = $this->sanitizeURI($uri);

        $this->Logger->debug("Routing URI: {$uri}");



        $result = array();
        $qs = array_merge($_POST, $_GET);

        $routes = $this->routeService->findAll();

//        $regex = $this->compoundRegex(array_keys($routes));
//        error_log($regex);
//
//        if (! preg_match($regex, $uri, $matches)) {
//            $match = '';
//            error_log('no match');
//            exit;
//            return false;
//        }
//        $match = $matches[0];
//        error_log('match = '.$match);
//        exit;

        $this->Logger->debug("Testing Routes\n");

        foreach ((array)$routes as $test_uri => $nvps) {

            $this->Logger->debug("{$test_uri}");


            $m = null;
            $re = str_replace('/', '\/', $test_uri);
            $match = preg_match('/^' . $re . '$/i', $uri, $m);
            if ($match) {
                if (!empty($nvps) && is_array($nvps)) {
                    foreach ($nvps as $name => $value) {
                        foreach ($m as $n => $v) {
                            $value = str_replace('$'.$n, $v, $value);
                        }

                        foreach ($qs as $n => $v) {
                            if (is_scalar($v))
                                $value = str_replace('$'.$n, $v, $value);
                        }

                        $varparts = null;
                        if (preg_match("/(.+)\[(.+)\]/", $name, $varparts)) {
                            $result[$varparts[1]][$varparts[2]] = $value;
                        } else {
                            $result[$name] = $value;
                        }
                    }
                }

                foreach ($m as $n => $v)
                    if (is_int($n))
                        unset($m[$n]);

                $result = array_merge($m, $result);

                $this->Logger->debug('Routing result:');
                $this->Logger->debug($result);

                return $result;
            }
        }

        $this->checkRedirects();

        $this->Logger->debug("No routes matched.");

        return null;
    }
835911
public function getRoute()
    {
        foreach ($this->routes as $route) {

            // Is the route array valid
            if (false == ($cleansed = $this->isValidRoute($route))) {
                continue;
            }

            $route = $cleansed;

            // Does request method match
            if (!$this->methodMatches($route)) {
                continue;
            }

            if (false === $this->isAllowedByIp($route)) {
                continue;
            }

            if (false === $this->isAllowedByRole($route)) {
                // @codeCoverageIgnoreStart
                continue;
                // @codeCoverageIgnoreEnd
            }

            if (false != ($match = $this->isDirectMatch($route))) {
                return $match;
            }

            if (false != ($match = $this->isParameterisedMatch($route))) {
                return $match;
            }
        }

        $e = new RouteNotFoundException('Route for path not found.');
        $e->setAdditionalData('Path: ', $this->path);
        throw $e;
    }
1045853
public function handler(): Response
    {
        if ($this->redirect) {
            return response(null, 302, ['Location' => $this->redirect]);
        } elseif ($this->request->query->has('error')) {
            return view('error.twig', [
                'error' => $this->request->query->get('error'),
                'message' => $this->request->query->get('message')
            ]);
        } else {
            $this->addAssets();
            return view($this->template, $this->data);
        }
    }
659710
public function get()
    {
        $url = $this->getUrl('get');
        $json = $this->curl->get($url);

        return $json;
    }
577761
public function get()
	{
		$view = $this->getView();

		$view->subscriptionData = $this->toArray( $view->item );
		$view->subscriptionBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->subscriptionBody .= $client->get();
		}

		return $this->render( $view );
	}
60494
public function get()
	{
		$view = $this->getView();

		$view->downloadData = $this->toArray( $view->item );
		$view->downloadBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->downloadBody .= $client->get();
		}

		return $this->render( $view );
	}
911900
public function response()
    {
        $this->response = $this->client->send($this->request);

        return $this->response->json();
    }
1218615
public function indexAction()
    {
        if ($this->auth->hasIdentity()) {
            return $this->redirect()->toRoute('lang');
        }

        $viewModel        = new ViewModel();
        /* @var $loginForm Login */
        $loginForm        = $this->forms[self::LOGIN];
        /* @var $registerForm Register */
        $registerForm = $this->forms[self::REGISTER];

        /* @var $request \Zend\Http\Request */
        $request   = $this->getRequest();

        if ($request->isPost()) {
            $data                          = $this->params()->fromPost();
            $adapter                       = $this->userLoginAdapter;
            // inject suffixes via shared Events
            $loginSuffix                   = '';
            // @TODO: replace this by the Plugin LoginFilter
            $e                             = $this->getEvent();
            $loginSuffixResponseCollection = $this->getEventManager()->trigger('login.getSuffix', $e);
            if (!$loginSuffixResponseCollection->isEmpty()) {
                $loginSuffix = $loginSuffixResponseCollection->last();
            }

            $loginForm->setData($data);
            if (array_key_exists('credentials', $data) &&
                array_key_exists('login', $data['credentials']) &&
                array_key_exists('credential', $data['credentials'])) {
                $adapter->setIdentity($data['credentials']['login'] . $loginSuffix)
                    ->setCredential($data['credentials']['credential']);
            }
            
            $auth   = $this->auth;
            $result = $auth->authenticate($adapter);
            
            
            if ($result->isValid()) {
                $user = $auth->getUser();
                $language = $this->locale->detectLanguage($request, $user);
                $this->logger->info('User ' . $user->getLogin() . ' logged in');
                
                $ref = $this->params()->fromQuery('ref', false);

                if ($ref) {
                    $ref = urldecode($ref);
                    $url = preg_replace('~/[a-z]{2}(/|$)~', '/' . $language . '$1', $ref);
                    $url = $request->getBasePath() . $url;
                } else {
                    $urlHelper = $this->viewHelperManager->get('url');
                    $url = $urlHelper('lang', array('lang' => $language));
                }
                $this->notification()->success(/*@translate*/ 'You are now logged in.');
                return $this->redirect()->toUrl($url);
            } else {
                $loginName = $data['credentials']['login'];
                if (!empty($loginSuffix)) {
                    $loginName = $loginName . ' (' . $loginName . $loginSuffix . ')';
                }
                $this->logger->info('Failed to authenticate User ' . $loginName);
                $this->notification()->danger(/*@translate*/ 'Authentication failed.');
            }
        }
        
        $ref = $this->params()->fromQuery('ref', false);
        
        if ($ref) {
            $req = $this->params()->fromQuery('req', false);
            if ($req) {
                $this->getResponse()->setStatusCode(Response::STATUS_CODE_401);
                $viewModel->setVariable('required', true);
            }
            $viewModel->setVariable('ref', $ref);
        }

        $allowRegister = $this->options->getEnableRegistration();
        $allowResetPassword = $this->options->getEnableResetPassword();
        if (isset($allowRegister)) {
            $viewModel->setVariables(
                [
                    'allowRegister' => $allowRegister,
                    'allowResetPassword' => $allowResetPassword
                ]
            );
        }

        $viewModel->setVariable('loginForm', $loginForm);
        $viewModel->setVariable('registerForm', $registerForm);

        /* @deprecated use loginForm instead of form in your view scripts */
        $viewModel->setVariable('form', $loginForm);


        return $viewModel;
    }
1028722
public function get()
    {
        $builtUrl = $this->urlBuilder->buildUrl();
        $this->urlBuilder->resetUrl();
        return $this->http->request($builtUrl, 'GET');
    }
469200
public function getResponse()
    {
        $this->matcher = new UrlMatcher($this->routes, $this->context);

        $this->parameters = $this->matcher->matchRequest($this->request);

        $controller = $this->parameters['_controller'];
        if ($controller === null) {
            $response = new Response();
        } else {
            $this->controller = new $controller($this->request, $this->parameters);
            $response = $this->controller->handler();
        }

        return $response;
    }
534713
public function getHttpRequest()
    {
        if ($this->rootRequest === null) {
            $this->rootRequest = ($this->parentRequest instanceof HttpRequest) ? $this->parentRequest : $this->parentRequest->getHttpRequest();
        }
        return $this->rootRequest;
    }
1307444
public function & GetResponse () {
		if ($this->response === NULL) {
			$responseClass = $this->responseClass;
			$this->response = $responseClass::CreateInstance();
		}
		return $this->response;
	}