Updated Shipyard queue manager
Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
282eb43a31
commit
2bc1fdee62
7 changed files with 455 additions and 260 deletions
|
|
@ -9,6 +9,8 @@ class Legacies
|
|||
public static $request = null;
|
||||
public static $response = null;
|
||||
|
||||
protected static $_now = null;
|
||||
|
||||
public static function registerListener($event, $listener)
|
||||
{
|
||||
if (!isset(self::$_listeners[$event])) {
|
||||
|
|
@ -72,4 +74,12 @@ class Legacies
|
|||
{
|
||||
return 'fr_FR';
|
||||
}
|
||||
|
||||
public static function now()
|
||||
{
|
||||
if (self::$_now === null) {
|
||||
self::$_now = time();
|
||||
}
|
||||
return self::$_now;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue