Auth
5 months ago
Cookie
5 months ago
Exception
5 months ago
Proxy
5 months ago
Response
5 months ago
Transport
5 months ago
Utility
5 months ago
Auth.php
5 months ago
Autoload.php
5 months ago
Capability.php
5 months ago
Cookie.php
5 months ago
Exception.php
5 months ago
HookManager.php
5 months ago
Hooks.php
5 months ago
IdnaEncoder.php
5 months ago
Ipv6.php
5 months ago
Iri.php
5 months ago
Port.php
5 months ago
Proxy.php
5 months ago
Requests.php
5 months ago
Response.php
5 months ago
Session.php
5 months ago
Ssl.php
5 months ago
Transport.php
5 months ago
Auth.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Authentication provider interface |
| 4 | * |
| 5 | * @package Requests\Authentication |
| 6 | */ |
| 7 | |
| 8 | namespace AmeliaVendor\WpOrg\Requests; |
| 9 | |
| 10 | use AmeliaVendor\WpOrg\Requests\Hooks; |
| 11 | |
| 12 | /** |
| 13 | * Authentication provider interface |
| 14 | * |
| 15 | * Implement this interface to act as an authentication provider. |
| 16 | * |
| 17 | * Parameters should be passed via the constructor where possible, as this |
| 18 | * makes it much easier for users to use your provider. |
| 19 | * |
| 20 | * @see \AmeliaVendor\WpOrg\Requests\Hooks |
| 21 | * |
| 22 | * @package Requests\Authentication |
| 23 | */ |
| 24 | interface Auth { |
| 25 | /** |
| 26 | * Register hooks as needed |
| 27 | * |
| 28 | * This method is called in {@see \WpOrg\Requests\Requests::request()} when the user |
| 29 | * has set an instance as the 'auth' option. Use this callback to register all the |
| 30 | * hooks you'll need. |
| 31 | * |
| 32 | * @see \AmeliaVendor\WpOrg\Requests\Hooks::register() |
| 33 | * @param \AmeliaVendor\WpOrg\Requests\Hooks $hooks Hook system |
| 34 | */ |
| 35 | public function register(Hooks $hooks); |
| 36 | } |
| 37 |