Skip to content

Commit 9e698d9

Browse files
committed
Hooks array were modified
1 parent 9b4fcc1 commit 9e698d9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/Hook.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ class Hook {
2828
*
2929
* @var array
3030
*/
31-
private static $_hooks = array();
31+
private static $_hooks = [
32+
'meta',
33+
'css',
34+
'after-body',
35+
'footer',
36+
'js',
37+
'launch',
38+
'routes'
39+
];
3240

3341
/**
3442
* Method name to use the singleton pattern and just create an instance.
@@ -63,17 +71,7 @@ public static function getInstance($id = 0) {
6371

6472
return self::$_instances[$id];
6573
}
66-
67-
self::setHook([
68-
'meta',
69-
'css',
70-
'after-body',
71-
'footer',
72-
'js',
73-
'launch',
74-
'routes'
75-
]);
76-
74+
7775
return self::$_instances[$id] = new self;
7876
}
7977

0 commit comments

Comments
 (0)