|
2 | 2 | namespace Frdlweb;
|
3 | 3 |
|
4 | 4 | use frdlweb\AppInterface;
|
| 5 | +use Eljam\CircuitBreaker\Breaker; |
| 6 | +use Fuz\Component\SharedMemory\SharedMemory; |
5 | 7 |
|
6 | 8 | interface AdvancedWebAppInterface extends WebAppInterface
|
7 | 9 | {
|
8 |
| - //public function findAppDir(string $userdir = null, $create = false); |
| 10 | + |
9 | 11 | public function getDir(string $type = null, $create = true) : string;
|
10 | 12 | public function getFile(string $path, string $type = null) : string;
|
11 | 13 | public function getStub(): ?StubHelperInterface;
|
12 | 14 | public function setStub(?StubHelperInterface $stubHelper = null) : AppInterface;
|
13 | 15 | public function getSources(string $userdir = null, $create = false) : array;
|
14 | 16 | public function getWebUriBase() : string | bool;
|
15 | 17 | public function getAppId() : string;
|
16 |
| - public function mount(): AppInterface; |
17 | 18 | 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; |
18 | 60 | public function tick(
|
19 | 61 | string|\callable|\closure $script = null,
|
20 | 62 | array $contextArgs = null,
|
21 | 63 | int $flags = \EXTR_OVERWRITE,
|
22 | 64 | 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 | + */ |
27 | 67 | }
|
0 commit comments