# solid-performance/trunk/src/Performance/View/Provider.php

Solid Performance – Your No-Code Caching, Performance, &amp; Page Speed Solution, version trunk. 39 lines.

- Page: https://pluginprobe.com/plugins/solid-performance/trunk/code/src/Performance/View/Provider.php
- Raw: https://pluginprobe.com/plugins/solid-performance/trunk/raw/src/Performance/View/Provider.php
- Modified: 2025-02-13T01:04: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/solid-performance/trunk/code/src/Performance/View/Provider.php#L10-L20`.

```php
<?php
/**
 * The provider for the view system.
 *
 * @package SolidWP\Performance
 */

declare( strict_types=1 );

namespace SolidWP\Performance\View;

use SolidWP\Performance\Contracts\Service_Provider;
use SolidWP\Performance\View\Contracts\View;
use SolidWP\Performance\View\Renderers\WordPress;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * The provider for the view system.
 *
 * @package SolidWP\Performance
 */
final class Provider extends Service_Provider {

	/**
	 * {@inheritdoc}
	 */
	public function register(): void {
		$this->container->singleton(
			WordPress::class,
			new WordPress( __DIR__ . '/../../views' )
		);

		$this->container->bind( View::class, $this->container->get( WordPress::class ) );
	}
}

```
