Request_Router

Summary

Class Request_Router


Description

Routes requests to the wishlist action endpoint to the appropriate action handler


Source

File: src/BigCommerce/Accounts/Wishlists/Actions/Request_Router.php

class Request_Router {
	const ACTION = 'wishlist';

	/**
	 * @param $args
	 *
	 * @return void
	 * @action bigcommerce/action_endpoint/ . self::ACTION
	 */
	public function handle_request( array $args ) {
		$action = array_shift( $args );
		do_action( 'bigcommerce/wishlist_endpoint/' . $action, $args );
	}
}

Methods


User Contributed Notes

You must log in before being able to contribute a note or feedback.