RedisProfilerStorage deprecated::setRedis()

setRedis(Redis $redis) Set instance of the Redis. Parameters Redis $redis

RedisProfilerStorage deprecated

class RedisProfilerStorage implements ProfilerStorageInterface deprecated Deprecated since Symfony 2.8, to be removed in Symfony 3.0. Use {@link FileProfilerStorage} instead. RedisProfilerStorage stores profiling information in Redis. Constants TOKEN_PREFIX REDIS_OPT_SERIALIZER REDIS_OPT_PREFIX REDIS_SERIALIZER_NONE REDIS_SERIALIZER_PHP Methods __construct(string $dsn, string $username = '', string $password = '', int $lifetime = 86400) Constructor. array f

RedisAdapter

class RedisAdapter extends AbstractAdapter Traits LoggerAwareTrait Methods static createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null) from AbstractAdapter getItem($key) {@inheritdoc} from AbstractAdapter getItems(array $keys = array()) {@inheritdoc} from AbstractAdapter hasItem($key) {@inheritdoc} from AbstractAdapter clear() {@inheritdoc} from AbstractAdapter deleteItem($key) {@inheritdoc} from AbstractAdapter

RedisProfilerStorage deprecated::find()

array find(string $ip, string $url, string $limit, string $method, int|null $start = null, int|null $end = null) Finds profiler tokens for the given criteria. Parameters string $ip The IP string $url The URL string $limit The maximum number of tokens to return string $method The request method int|null $start The start date to search from int|null $end The end date to search to Return Value array An array of tokens

RedirectResponse::getTargetUrl()

string getTargetUrl() Returns the target URL. Return Value string target URL

RedirectResponse::setTargetUrl()

RedirectResponse setTargetUrl(string $url) Sets the redirect target of this response. Parameters string $url The URL to redirect to Return Value RedirectResponse The current response Exceptions InvalidArgumentException

RedirectResponse::create()

static Response create($url = '', int $status = 302, array $headers = array()) Factory method for chainability. Example: return Response::create($body, 200) ->setSharedMaxAge(300); Parameters $url int $status The response status code array $headers An array of response headers Return Value Response

RedirectResponse

class RedirectResponse extends Response RedirectResponse represents an HTTP response doing a redirect. Constants HTTP_CONTINUE HTTP_SWITCHING_PROTOCOLS HTTP_PROCESSING HTTP_OK HTTP_CREATED HTTP_ACCEPTED HTTP_NON_AUTHORITATIVE_INFORMATION HTTP_NO_CONTENT HTTP_RESET_CONTENT HTTP_PARTIAL_CONTENT HTTP_MULTI_STATUS HTTP_ALREADY_REPORTED HTTP_IM_USED HTTP_MULTIPLE_CHOICES HTTP_MOVED_PERMANENTLY HTTP_FOUND HTTP_SEE_OTHER HTTP_NOT_

RedirectController::urlRedirectAction()

Response urlRedirectAction(Request $request, string $path, bool $permanent = false, string|null $scheme = null, int|null $httpPort = null, int|null $httpsPort = null) Redirects to a URL. The response status code is 302 if the permanent parameter is false (default), and 301 if the redirection is permanent. In case the path is empty, the status code will be 404 when permanent is false and 410 otherwise. Parameters Request $request The request instance string $path The absolute p

RedirectController::redirectAction()

Response redirectAction(Request $request, string $route, bool $permanent = false, bool|array $ignoreAttributes = false) Redirects to another route with the given name. The response status code is 302 if the permanent parameter is false (default), and 301 if the redirection is permanent. In case the route name is empty, the status code will be 404 when permanent is false and 410 otherwise. Parameters Request $request The request instance string $route The route name to redirect