Skip to the content
Documentation

exp:ezrequestrules

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

List and check the request rules of a siteaccess and explain their decision for an address

Usage

./console exp:ezrequestrules [options]
php bin/php/ezrequestrules.php [options]

Help

The output of ./console help exp:ezrequestrules (the script run with --help), without the standard options:

Usage: bin/php/ezrequestrules.php [OPTION]...
Exponential request rules
Lists and checks the rules of a siteaccess and explains their decision for an address.

  php bin/php/ezrequestrules.php -s site --list
  php bin/php/ezrequestrules.php -s site --check
  php bin/php/ezrequestrules.php -s site --uri=content/view/full/2
  php bin/php/ezrequestrules.php -s site --uri=Fit-Healthy --user=admin
  php bin/php/ezrequestrules.php -s site --uri=content/view/full/2 --header=X-Requested-With:XMLHttpRequest --ip=10.1.2.3


Options:
  --list             List the rules in the order they are asked
  --check            Report problems in the settings; exits 1 when there are any
  --uri=VALUE        Explain the decision for this address, as typed after the host and siteaccess (e.g. content/view/full/2 or Fit-Healthy)
  --user=VALUE       The login of the user to explain it for (default: the anonymous user)
  --method=VALUE     HTTP method (default GET)
  --host=VALUE       Host name the visitor used
  --ip=VALUE         Client address
  --scheme=VALUE     http or https (default https)
  --header=VALUE...  A request header, Name:Value; may be given more than once

Options

Option Value Description
--list - List the rules in the order they are asked
--check - Report problems in the settings; exits 1 when there are any
--uri required Explain the decision for this address, as typed after the host and siteaccess (e.g. content/view/full/2 or Fit-Healthy)
--user required The login of the user to explain it for (default: the anonymous user)
--method required HTTP method (default GET)
--host required Host name the visitor used
--ip required Client address
--scheme required http or https (default https)
--header required A request header, Name:Value; may be given more than once

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/ezrequestrules.php, kernel/private/classes/commands/ezrequestrules.php

See also

Generated example: exp:ezrequestrules

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.