PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.2.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.2.0
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / View / Provider.php

Provider.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.2.0, at src/Performance/View/Provider.php

39 lines 727 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The provider for the view system.
4 *
5 * @package SolidWP\Performance
6 */
7
8 declare( strict_types=1 );
9
10 namespace SolidWP\Performance\View;
11
12 use SolidWP\Performance\Contracts\Service_Provider;
13 use SolidWP\Performance\View\Contracts\View;
14 use SolidWP\Performance\View\Renderers\WordPress;
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 /**
21 * The provider for the view system.
22 *
23 * @package SolidWP\Performance
24 */
25 final class Provider extends Service_Provider {
26
27 /**
28 * {@inheritdoc}
29 */
30 public function register(): void {
31 $this->container->singleton(
32 WordPress::class,
33 new WordPress( __DIR__ . '/../../views' )
34 );
35
36 $this->container->bind( View::class, $this->container->get( WordPress::class ) );
37 }
38 }
39