Pyro is a simple ZF2 firewall module.
Just add the following to your application.config.php modules
return [
'modules' => [
'Zoop\Pyro',
...
],
...
];
return [
'zoop' => [
'pyro' => [
'enable' => true, // turns the firewall on or off.
'adapter' => 'zoop.pyro.adapter.doctrine', //set active adapter, see below.
],
],
...
];
Pyro consumes firewall "adapters", which are services that store, retrieve and test IP addresses against. You can create your own adapters by implementing Zoop\Pyro\Adapter\AdapterInterface
.