Documentation

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
see
https://symfony.com/doc/3.1/components/console/single_command_tool.html
see
https://symfony.com/doc/3.2/components/console/single_command_tool.html
see
https://symfony.com/doc/5.1/components/console/single_command_tool.html
author

Viktor Linkin adrenalinkin@gmail.com

Table of Contents

Constants

APP_NAME  = 'PHP client library for Coveralls API'
APP_VERSION  = '@package_version@'

Methods

create()  : Application

Constants

Methods


        
On this page

Search results