Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 889 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 889 Bytes

Pyro

Build Status

Pyro is a simple ZF2 firewall module.

Usage

Module init

Just add the following to your application.config.php modules

return [
    'modules' => [
        'Zoop\Pyro',
        ...
    ],
    ...
];

Config

return [
    'zoop' => [
        'pyro' => [
            'enable'  => true, // turns the firewall on or off.
            'adapter' => 'zoop.pyro.adapter.doctrine', //set active adapter, see below.
        ],
    ],
    ...
];

Adapters

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.