| 1 |
<?php |
| 2 |
namespace Depicter\Security; |
| 3 |
|
| 4 |
use WPEmerge\ServiceProviders\ServiceProviderInterface; |
| 5 |
|
| 6 |
class SecurityServiceProvider implements ServiceProviderInterface { |
| 7 |
|
| 8 |
/** |
| 9 |
* {@inheritDoc} |
| 10 |
*/ |
| 11 |
public function register( $container ) { |
| 12 |
|
| 13 |
$container[ CSRF::class ] = function ( $c ) { |
| 14 |
return new CSRF( 'depicter-csrf', 2 ); |
| 15 |
}; |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* {@inheritDoc} |
| 20 |
*/ |
| 21 |
public function bootstrap( $container ) { |
| 22 |
// Nothing to bootstrap. |
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|