PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / trunk
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution vtrunk
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 / Storage / Provider.php
src/Performance/Storage
Contracts 1 year ago Drivers 1 year ago Exceptions 1 year ago Traits 1 year ago Provider.php 667 B 1 year ago

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

30 lines 667 B Raw Download Zip
1 <?php
2 /**
3 * Register Storage related definitions in the container.
4 *
5 * @package SolidWP\Performance
6 */
7
8 declare( strict_types=1 );
9
10 namespace SolidWP\Performance\Storage;
11
12 use SolidWP\Performance\Contracts\Service_Provider;
13 use SolidWP\Performance\Storage\Contracts\Storage;
14 use SolidWP\Performance\Storage\Drivers\Option_Storage;
15
16 /**
17 * Register Storage related definitions in the container.
18 *
19 * @package SolidWP\Performance
20 */
21 final class Provider extends Service_Provider {
22
23 /**
24 * @inheritDoc
25 */
26 public function register(): void {
27 $this->container->singleton( Storage::class, fn(): Storage => $this->container->get( Option_Storage::class ) );
28 }
29 }
30