File "OldInputServiceProvider.php"
Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/depicter/vendor/averta/wpemerge/src/Input/OldInputServiceProvider.php
File
size: 973 B (973 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
/**
* @package WPEmerge
* @author Atanas Angelov <hi@atanas.dev>
* @copyright 2017-2019 Atanas Angelov
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
* @link https://wpemerge.com/
*/
namespace WPEmerge\Input;
use WPEmerge\ServiceProviders\ServiceProviderInterface;
/**
* Provide old input dependencies.
*
* @codeCoverageIgnore
*/
class OldInputServiceProvider implements ServiceProviderInterface {
/**
* {@inheritDoc}
*/
public function register( $container ) {
$container[ WPEMERGE_OLD_INPUT_KEY ] = function ( $c ) {
return new OldInput( $c[ WPEMERGE_FLASH_KEY ] );
};
$container[ OldInputMiddleware::class ] = function ( $c ) {
return new OldInputMiddleware( $c[ WPEMERGE_OLD_INPUT_KEY ] );
};
$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'oldInput', WPEMERGE_OLD_INPUT_KEY );
}
/**
* {@inheritDoc}
*/
public function bootstrap( $container ) {
// Nothing to bootstrap.
}
}