| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class CsrfServiceProvider implements ServiceProviderInterface { |
||
| 15 | /** |
||
| 16 | * {@inheritDoc} |
||
| 17 | */ |
||
| 18 | public function register( $container ) { |
||
| 19 | $container[ WPEMERGE_CSRF_KEY ] = function() { |
||
| 20 | return new Csrf(); |
||
| 21 | }; |
||
| 22 | |||
| 23 | Framework::facade( 'Csrf', \WPEmerge\Facades\Csrf::class ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | public function boot( $container ) { |
||
| 30 | // nothing to boot |
||
| 31 | } |
||
| 33 |