Sets whether to automatically exit after a command execution or not.
public setAutoExit ( boolean $boolean ) | ||
$boolean | boolean | Whether to automatically exit after a command execution or not |
use Symfony\Component\Console\Application; $application = new Application(); $application->setAutoExit(false); // Disables auto-exit
use Symfony\Component\Console\Application; $application = new Application(); $application->setAutoExit(true); // Enables auto-exitIn this example, the setAutoExit method is used to enable the auto-exit feature of the console application. This method belongs to the Symfony Console component, a package library that provides a command-line interface toolkit. It is used in various applications and frameworks built with PHP, including the Laravel framework.
public setAutoExit ( boolean $boolean ) | ||
$boolean | boolean | Whether to automatically exit after a command execution or not |