@param string $name

@return Response|RedirectResponse
557945
public function styleHistoryAction($name)
    {
        $em = $this->get('doctrine.orm.entity_manager');

        $histories = $em->getRepository(AppearanceHistory::class)->findBy([
            'path'       => '/Resources/public/css/',
            'filename'   => $name,
        ], ['created_at' => 'DESC']);

        return $this->render('@CMS/AdminAppearance/style_history.html.twig', [
            'name' => $name,
            'histories' => $histories,
        ]);
    }
113271
public function api($name)
    {
        $this->initializeClient($this->url, $this->client);

        $class = 'Rs\\VersionEye\\Api\\' . ucfirst($name);

        if (class_exists($class)) {
            return new $class($this->client);
        } else {
            throw new \InvalidArgumentException('unknown api "' . $name . '" requested');
        }
    }
1269824
public static function request($name)
    {
        if (app()->config->get('request.csrf')) {
            $name = self::hash($name);
        }

        return $name;
    }
1114690
public function sectionAction($name)
    {
        $section = $this->getGenerator()->fetch($name);

        if (!$section) {
            throw $this->createNotFoundException();
        }

        $response = Response::create($section->toXml());
        $response->setPublic();
        $response->setClientTtl($this->getTtl());

        return $response;
    }
1276103
public function getRequestHeader($name)
    {
        return (isset($this->requestHeaders[$name])) ? $this->requestHeaders[$name] : null;
    }
265250
public function addInputUrl(string $name) : Element\Input\Url
    {
        $input = new Element\Input\Url($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
976699
public function get($name)
    {
        if (is_null($name) || empty($name))
        {
            return null;
        }

        $loweredKey = strtolower($name);

        if (array_key_exists($loweredKey, $this->keyMap) === false)
        {
            return null;
        }

        $originalKey = $this->keyMap[$loweredKey];

        return $this->headerMap[$originalKey];
    }
138125
protected function getArg ($name)
	{
		
		if (isset ($this->request['post'][$name]))
		{
			return $this->request['post'][$name];
		}
		else
		{
			return $this->getURLArg ($name);
		}
		
	}
1229813
protected function parseResponse($name, $response)
    {
        if ($response instanceof static) {
            return $response;
        }

        #echo "> $name : ".substr(print_r($response, TRUE),0,100)."\n";

        // change return values where it is too difficult to minim in standalone mode
        switch ($name) {
            case 'type':
                $response = self::$typeMap[$response];
                break;

            // Handle scripting errors
            case 'eval':
            case 'evalsha':
            case 'script':
                $error = $this->redis->getLastError();
                $this->redis->clearLastError();
                if ($error && \strpos($error, 'NOSCRIPT') === 0) {
                    $response = null;
                } elseif ($error) {
                    throw new RedisException($error);
                }
                break;
            case 'exists':
                // smooth over phpredis-v4 vs earlier difference to match documented credis return results
                $response = (int) $response;
                break;
            default:
                $error = $this->redis->getLastError();
                $this->redis->clearLastError();
                if ($error) {
                    throw new RedisException($error);
                }
                break;
        }

        return $response;
    }
59103
private function callRequestFor($name, $parameters)
    {
        if (! $this->getHttpManager()) {
            $httpClient = new GuzzleAdapter(new GuzzleClient());
            $this->setHttpManager(new HttpManager($httpClient, $this->getOptions()));
        }

        /** @var RequestInterface $request */
        $request = $this->{'get' . ucfirst($name) . 'Request'}();

        return $request->execute(
            $this->getHttpManager(),
            $this->getParameters($parameters)
        );
    }
736988
public function newFriendRequestAction($name)
    {
        $logFile = $this->container->getParameter('claroline.param.claroline_log');
        $host = $this->request->query->get('host');
        //uncomment this for debugging puroposes...

        if ($this->container->get('kernel')->getEnvironment() === 'dev') {
            $fileLogger = new \Monolog\Logger('claroline.debug.log');
            $fileLogger->pushHandler(new \Monolog\Handler\StreamHandler($logFile));
            $fileLogger->addInfo(var_export($this->oauthManager->isAutoCreated($host), true));
        }

        $this->oauthManager->addPendingFriendRequest(
            $name,
            $host,
            $this->oauthManager->isAutoCreated($host)
        );

        return new JsonResponse(array('name' => $name, 'host' => $host));
    }
1206724
public function get(string $name)
    {
        return isset($this->headers[$name]) ? $this->headers[$name] : null;
    }
1016862
public function removeHeader(string $name): Request
    {
        if ($this->hasHeader($name)) {
            unset($this->headers[$name]);
        }
        return $this;
    }
1215827
public function get(string $name): string
    {
        $name = strtolower($name);
        return isset($this->headers[$name]) ? $this->headers[$name] : '';
    }
394412
public function getUrlFromName($name)
    {
        $searchEngineNames = $this->getNames();
        if (isset($searchEngineNames[$name])) {
            $url = 'http://' . $searchEngineNames[$name];
        } else {
            $url = 'URL unknown!';
        }
        return $url;
    }
459720
public static function tryGetResource(string $name)
    {
        $resource = static::getInstance($name)->tryGetResource();
        if(!$resource)
        {
            static::pushResourceToRequestContext($resource);
        }
        return $resource;
    }
621126
public function removeAction($name)
    {
        /* @var \Google_Client $client */
        $clientProvider = $this->get('happyr.google_site_authenticator.client_provider');
        $clientProvider->setAccessToken(null, $name);

        $this->get('session')->getFlashbag()->add('msg', 'Token was removed.');

        return $this->redirect($this->generateUrl('happyr.google_site_authenticator.index'));
    }