diff --git a/src/Hook.php b/src/Hook.php index 87c65f0..dbaefda 100644 --- a/src/Hook.php +++ b/src/Hook.php @@ -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. @@ -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; }