htmlburger /
wpemerge
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @package WPEmerge |
||
| 4 | * @author Atanas Angelov <[email protected]> |
||
| 5 | * @copyright 2018 Atanas Angelov |
||
| 6 | * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 |
||
| 7 | * @link https://wpemerge.com/ |
||
| 8 | */ |
||
| 9 | |||
| 10 | namespace WPEmerge\Csrf; |
||
| 11 | |||
| 12 | use WPEmerge\Facades\Application; |
||
| 13 | use WPEmerge\ServiceProviders\ServiceProviderInterface; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Provide CSRF dependencies. |
||
| 17 | * |
||
| 18 | * @codeCoverageIgnore |
||
| 19 | */ |
||
| 20 | class CsrfServiceProvider implements ServiceProviderInterface { |
||
| 21 | /** |
||
| 22 | * {@inheritDoc} |
||
| 23 | */ |
||
| 24 | public function register( $container ) { |
||
| 25 | $container[ WPEMERGE_CSRF_KEY ] = function () { |
||
| 26 | return new Csrf(); |
||
| 27 | }; |
||
| 28 | |||
| 29 | Application::facade( 'Csrf', \WPEmerge\Facades\Csrf::class ); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | */ |
||
| 35 | public function bootstrap( $container ) { |
||
| 36 | // Nothing to bootstrap. |
||
| 37 | } |
||
| 38 | } |
||
| 39 |