the latest code
This commit is contained in:
1 parent
d28bc1ed43
commit
9bbb24a52b
12226 files changed
+1455579
-21
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Pail\Guards;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class EnsurePcntlIsAvailable
|
||||
{
|
||||
/**
|
||||
* Checks if the pcntl extension is available.
|
||||
*/
|
||||
public static function check(): void
|
||||
{
|
||||
if (! function_exists('pcntl_fork')) {
|
||||
throw new RuntimeException('The [pcntl] extension is required to run Pail.');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user