PluginProbe
SpinupWP / 1.5
SpinupWP v1.5
trunk 1.0 1.0.1 1.0.2 1.0.3 1.1 1.1.1 1.1.2 1.2 1.3 1.4 1.4.1 1.4.2 1.5 1.5.1 1.6 1.7 1.7.1 1.8.0 1.9.0 1.9.1
spinupwp / src / Compatibility.php

Compatibility.php in SpinupWP 1.5, at src/Compatibility.php

37 lines 559 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SpinupWp;
4
5 use SpinupWp\Compatibility\ElementorPlugin;
6
7 class Compatibility {
8 /**
9 * @var Cache
10 */
11 protected $cache;
12
13 /**
14 * @var array
15 */
16 protected $compatibilityClasses = array(
17 ElementorPlugin::class,
18 );
19
20 /**
21 * Compatibility constructor.
22 *
23 * @param Cache $cache
24 */
25 public function __construct( Cache $cache ) {
26 $this->cache = $cache;
27 }
28
29 /**
30 * Init
31 */
32 public function init() {
33 foreach ( $this->compatibilityClasses as $compatibilityClass ) {
34 ( new $compatibilityClass( $this->cache ) )->init();
35 }
36 }
37 }