We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ceaf40 commit 30e5769Copy full SHA for 30e5769
src/Plugin.php
@@ -16,13 +16,19 @@ final class Plugin {
16
* @return void
17
*/
18
public function register() {
19
+ $this->setup();
20
+
21
// Register services used throughout the plugin. (WP Rocket runs at priority 10)
22
add_action( 'plugins_loaded', [ $this, 'register_services' ], 9 );
23
24
// Load text domain.
25
add_action( 'init', [ $this, 'load_plugin_textdomain' ], 1000 );
26
}
27
28
+ public function setup() {
29
+ new Setup();
30
+ }
31
32
/**
33
* Registers the individual services of the plugin.
34
*
@@ -47,7 +53,6 @@ public function register_services() {
47
53
new Compatibility();
48
54
new Filters();
49
55
new Proxy();
50
- new Setup();
51
56
52
57
58
0 commit comments