Skip to content

Commit

Permalink
Hooks array were modified
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed May 19, 2017
1 parent 9b4fcc1 commit 9e698d9
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ class Hook {
*
* @var array
*/
private static $_hooks = array();
private static $_hooks = [
'meta',
'css',
'after-body',
'footer',
'js',
'launch',
'routes'
];

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

return self::$_instances[$id];
}

self::setHook([
'meta',
'css',
'after-body',
'footer',
'js',
'launch',
'routes'
]);


return self::$_instances[$id] = new self;
}

Expand Down

0 comments on commit 9e698d9

Please sign in to comment.