ApplicationFactory
in package
In symfony/console 3.1 and lower provides only one way to realize single command application.
It is possible by extending the Application Since symfony/console 6 applied strict typing which makes impossible to extending. Since symfony/console 3.1 added public method setDefaultCommand() Since symfony/console 3.2 method setDefaultCommand() accepts a boolean as second parameter, so we can build single command application without extending. But we can't rely on condition is method setDefaultCommand exists to apply new way without extending Since symfony/console 5.1 introduced new class SingleCommandApplication. But we can't use that without huge code duplication from the CoverallsJobsCommand. Nevertheless, when SingleCommandApplication exists we can be sure - setDefaultCommand can be applied.
Tags
Table of Contents
Constants
- APP_NAME = 'PHP client library for Coveralls API'
- APP_VERSION = '@package_version@'
Methods
Constants
APP_NAME
public
mixed
APP_NAME
= 'PHP client library for Coveralls API'
APP_VERSION
public
mixed
APP_VERSION
= '@package_version@'
Methods
create()
public
static create(string $rootDir) : Application
Parameters
- $rootDir : string