FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
core
/
core
/
src
/
Requests
Edit File: RequestsServiceProvider.php
<?php /** * @package SureCartCore * @author SureCart <support@surecart.com> * @copyright 2017-2019 SureCart * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 * @link https://surecart.com/ */ namespace SureCartCore\Requests; use SureCartCore\ServiceProviders\ServiceProviderInterface; /** * Provide request dependencies. * * @codeCoverageIgnore */ class RequestsServiceProvider implements ServiceProviderInterface { /** * {@inheritDoc} */ public function register( $container ) { $container[ SURECART_REQUEST_KEY ] = function () { return Request::fromGlobals(); }; } /** * {@inheritDoc} */ public function bootstrap( $container ) { // Nothing to bootstrap. } }
Save
Back