Skip to content

Commit b3f2bea

Browse files
authored
Update AdvancedWebAppInterface.php
1 parent b4180d8 commit b3f2bea

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

src/Frdlweb/AdvancedWebAppInterface.php

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,66 @@
22
namespace Frdlweb;
33

44
use frdlweb\AppInterface;
5+
use Eljam\CircuitBreaker\Breaker;
6+
use Fuz\Component\SharedMemory\SharedMemory;
57

68
interface AdvancedWebAppInterface extends WebAppInterface
79
{
8-
//public function findAppDir(string $userdir = null, $create = false);
10+
911
public function getDir(string $type = null, $create = true) : string;
1012
public function getFile(string $path, string $type = null) : string;
1113
public function getStub(): ?StubHelperInterface;
1214
public function setStub(?StubHelperInterface $stubHelper = null) : AppInterface;
1315
public function getSources(string $userdir = null, $create = false) : array;
1416
public function getWebUriBase() : string | bool;
1517
public function getAppId() : string;
16-
public function mount(): AppInterface;
1718
public function setAppId(string $appId = '1.3.6.1.4.1.37553.8.1.8.8.1958965301') : ?AppInterface;
19+
20+
public function onError($number = null, $message = null, $file = nulle, $line = null, $errcontext = null);
21+
public function exception_handler($exception);
22+
23+
24+
public function isSessionStarted() : bool;
25+
public function session_start(string $session_name = 'WEBFATSESSION');
26+
public function getResponseHeader($header, $response = null) : string | bool;
27+
public function hasRoute(string $name) : bool;
28+
public function getAppIntentDir(string $appOrScheme, string $intent = null, $create = false) : string;
29+
public function scheme(string $appOrScheme) : string;
30+
public function getEnvFlag() : string;
31+
public function &global();
32+
public function &getConnection(string $appOrScheme = null, string $id,
33+
int $max_failure = 1, int $reset_timeout = 5, bool $ignore_exceptions = false,
34+
array $exclude_exceptions = [],
35+
array $allowed_exceptions = []);
36+
public function hasConnection(string $id, string $appOrScheme = null) : bool;
37+
public function &getCircuitBreaker(string $appOrScheme = null, string $circuitId,
38+
\callable | \Closure $onSuccess = null,
39+
\callable | \Closure $onFailure = null,
40+
\callable | \Closure $onOpen = null,
41+
\callable | \Closure $onClosed = null,
42+
\callable | \Closure $onHalfopen = null,
43+
int $max_failure = 1,
44+
int $reset_timeout = 5,
45+
bool $ignore_exceptions = false,
46+
string $ext = 'txt',
47+
array $exclude_exceptions = [],
48+
array $allowed_exceptions = [],
49+
bool $forceAddEventHandlers = false) : Breaker;
50+
public function &getShared(string $sharedId, string $ext = 'txt', string $appOrScheme = null) : SharedMemory;
51+
public function deleteShared(string $sharedId, string $appOrScheme);
52+
public function hasShared(string $sharedId, string $appOrScheme = null) : bool;
53+
public function hasContainer(): bool;
54+
public function terminate(int $timelimit = null);
55+
56+
/*
57+
//public function findAppDir(string $userdir = null, $create = false);
58+
public function main(string $alias = null);
59+
public function mount(): AppInterface;
1860
public function tick(
1961
string|\callable|\closure $script = null,
2062
array $contextArgs = null,
2163
int $flags = \EXTR_OVERWRITE,
2264
string $prefix = ""
23-
);
24-
public function onError($number = null, $message = null, $file = nulle, $line = null, $errcontext = null);
25-
public function exception_handler($exception);
26-
public function main(string $alias = null);
65+
);
66+
*/
2767
}

0 commit comments

Comments
 (0)