index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
app
/
src
/
View
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/app/src/View/ViewServiceProvider.php
<?php namespace SureCart\View; use SureCartCore\ServiceProviders\ServiceProviderInterface; /** * Register view composers and globals. * This is an example class so feel free to modify or remove it. */ class ViewServiceProvider implements ServiceProviderInterface { /** * {@inheritDoc} */ public function register( $container ) { } /** * {@inheritDoc} */ public function bootstrap( $container ) { $this->registerGlobals(); $this->registerComposers(); } /** * Register view globals. * * @return void */ protected function registerGlobals() { /** * Globals * * @link https://docs.wpemerge.com/#/framework/views/overview */ // phpcs:ignore // \SureCart::views()->addGlobal( 'foo', 'bar' ); } /** * Register view composers. * * @return void */ protected function registerComposers() { /** * View composers * * @link https://docs.wpemerge.com/#/framework/views/view-composers */ // phpcs:ignore // \SureCart::views()->addComposer( 'partials/foo', 'FooPartialViewComposer' ); } }