The application configuration class Boson\ApplicationCreateInfo is optional and serves as a convenient way to define default settings for initializing your app.
Application Name
The name of the application.
$appConfig = new Boson\ApplicationCreateInfo(
name: 'Example Application',
);
The value is optional and can be used for user needs, as well as for internal ones.
Intercepted Schemes
Defines custom schemes that your application can handle. These schemes allow you to create custom protocols for your application.
$appConfig = new Boson\ApplicationCreateInfo(
schemes: [ 'boson' ], // Default is empty array
);
More detailed information about the schemes is available on the Schemes API page.
Threads Count
Specifies the number of physical threads for the application. This affects how many concurrent operations your application can handle.
$appConfig = new Boson\ApplicationCreateInfo(
threads: 4, // Default is null
);
Debug Mode
Enables or disables debug features, like dev tools and logging. When enabled, provides additional diagnostic information and developer tools.
$appConfig = new Boson\ApplicationCreateInfo(
debug: true, // Default is null
);
Application Library
Specifies the path to a custom frontend library that should be loaded with the application.
$appConfig = new Boson\ApplicationCreateInfo(
library: __DIR__ . '/path/to/custom/library.dll', // Default is null
);
Quit On Close
Determines whether the application should terminate when all windows are closed. If set to false, the application will continue running in the background.
$appConfig = new Boson\ApplicationCreateInfo(
quitOnClose: true, // Default is true
);
Autorun
Responsible for automatic application launch. If autorun is set to false, you will need to launch the application yourself at the moment when it is needed.
$appConfig = new Boson\ApplicationCreateInfo(
autorun: false, // Default is true
);