Skip to content

Commit f03ce85

Browse files
authored
feat: signals (#9690)
* feat: signals * docs: include cli_signals into the toctree * rename method areSignalsBlocked() to signalsBlocked() * update comments for methods * update return type for getProcessState() * apply code suggestions from code review * fix the tests * translate cli messages * fix typo in the language file * fix: psalm autoload * update changelog
1 parent 8a94ce6 commit f03ce85

File tree

28 files changed

+1601
-10
lines changed

28 files changed

+1601
-10
lines changed

admin/framework/composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
"ext-memcached": "If you use Cache class MemcachedHandler with Memcached",
3939
"ext-mysqli": "If you use MySQL",
4040
"ext-oci8": "If you use Oracle Database",
41+
"ext-pcntl": "If you use Signals",
4142
"ext-pgsql": "If you use PostgreSQL",
43+
"ext-posix": "If you use Signals",
4244
"ext-readline": "Improves CLI::input() usability",
4345
"ext-redis": "If you use Cache class RedisHandler",
4446
"ext-simplexml": "If you format XML",

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"ext-memcached": "If you use Cache class MemcachedHandler with Memcached",
4747
"ext-mysqli": "If you use MySQL",
4848
"ext-oci8": "If you use Oracle Database",
49+
"ext-pcntl": "If you use Signals",
4950
"ext-pgsql": "If you use PostgreSQL",
51+
"ext-posix": "If you use Signals",
5052
"ext-readline": "Improves CLI::input() usability",
5153
"ext-redis": "If you use Cache class RedisHandler",
5254
"ext-simplexml": "If you format XML",

psalm-autoload.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
];
2020

2121
foreach ($directories as $directory) {
22+
$filesToLoad = [];
23+
2224
$iterator = new RecursiveIteratorIterator(
2325
new RecursiveDirectoryIterator(
2426
$directory,
@@ -45,6 +47,13 @@
4547
continue;
4648
}
4749

48-
require_once $file->getPathname();
50+
$filesToLoad[] = $file->getPathname();
51+
}
52+
53+
// Sort files to ensure consistent loading order across operating systems
54+
sort($filesToLoad);
55+
56+
foreach ($filesToLoad as $file) {
57+
require_once $file;
4958
}
5059
}

0 commit comments

Comments
 (0)