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 9b4fcc1 commit 9e698d9Copy full SHA for 9e698d9
src/Hook.php
@@ -28,7 +28,15 @@ class Hook {
28
*
29
* @var array
30
*/
31
- private static $_hooks = array();
+ private static $_hooks = [
32
+ 'meta',
33
+ 'css',
34
+ 'after-body',
35
+ 'footer',
36
+ 'js',
37
+ 'launch',
38
+ 'routes'
39
+ ];
40
41
/**
42
* Method name to use the singleton pattern and just create an instance.
@@ -63,17 +71,7 @@ public static function getInstance($id = 0) {
63
71
64
72
return self::$_instances[$id];
65
73
}
66
-
67
- self::setHook([
68
- 'meta',
69
- 'css',
70
- 'after-body',
- 'footer',
- 'js',
- 'launch',
74
- 'routes'
75
- ]);
76
+
77
return self::$_instances[$id] = new self;
78
79
0 commit comments