CONFIG_KEY
CONFIG_KEY
Keeps track of when a client does something suspicious and takes action when a client has exceeded the threshold for a type of event. Each type of event has its own threshold limit and interval and actions.
$storage : \Spork\Mvc\Listener\Limit\Storage\StorageInterface
Storage instance
setLimit(\Spork\Mvc\Listener\Limit\Limit|array $limit)
Set a limit
\Spork\Mvc\Listener\Limit\Limit|array | $limit |
setPluginName(string $name) : \Spork\Mvc\Listener\Limit\LimitStrategy
Set controller plugin name
string | $name |
getStorage() : \Spork\Mvc\Listener\Limit\Storage\StorageInterface
Get storage instance
setStorage(\Spork\Mvc\Listener\Limit\StorageInterface|string|array $storage) : \Spork\Mvc\Listener\Limit\LimitStrategy
Set storage instance
\Spork\Mvc\Listener\Limit\StorageInterface|string|array | $storage |
on invalid type
setStoragePlugins(\Zend\ServiceManager\AbstractPluginManager $plugins) : \Spork\Mvc\Listener\Limit\LimitStrategy
Set storage plugin manager
\Zend\ServiceManager\AbstractPluginManager | $plugins |