# subscription/1.3.1/includes/Illuminate/Block.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.3.1. 39 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.3.1/code/includes/Illuminate/Block.php
- Raw: https://pluginprobe.com/plugins/subscription/1.3.1/raw/includes/Illuminate/Block.php
- Modified: 2024-08-26T06:30:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/1.3.1/code/includes/Illuminate/Block.php#L10-L20`.

```php
<?php

namespace SpringDevs\Subscription\Illuminate;

/**
 * Globally Load Scripts.
 */
class Block {

	/**
	 * Initialize the Class.
	 */
	public function __construct() {
		add_action( 'woocommerce_blocks_loaded', array( $this, 'block_registration' ) );
	}

	/**
	 * Block Registration.
	 *
	 * @return void
	 */
	public function block_registration() {
		require_once __DIR__ . '/wc-block-integration.php';
		add_action( 'woocommerce_blocks_cart_block_registration', array( $this, 'register' ) );
		add_action( 'woocommerce_blocks_checkout_block_registration', array( $this, 'register' ) );
	}

	/**
	 * Register the class.
	 *
	 * @param \Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry $integration_registry registry.
	 *
	 * @return void
	 */
	public function register( $integration_registry ) {
		$integration_registry->register( new \Sdevs_Subscrpt_WC_Integration() );
	}
}

```
