PHP 클래스 Doctrine\DBAL\Migrations\Tools\Console\Command\AbstractCommand

부터: 2.0
저자: Jonathan Wage ([email protected])
상속: extends Symfony\Components\Console\Command\Command
파일 보기 프로젝트 열기: doctrine/migrations 1 사용 예제들

공개 메소드들

메소드 설명
setMigrationConfiguration ( Configuration $config )

보호된 메소드들

메소드 설명
askConfirmation ( $question, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed This method ensure that we stay compatible with symfony console 2.3 by using the deprecated dialog helper but use the ConfirmationQuestion when available.
configure ( )
getMigrationConfiguration ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Configuration When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.
outputHeader ( Configuration $configuration, Symfony\Component\Console\Output\OutputInterface $output )

비공개 메소드들

메소드 설명
getConnection ( Symfony\Component\Console\Input\InputInterface $input ) : Doctrine\DBAL\Connection
getOutputWriter ( Symfony\Component\Console\Output\OutputInterface $output ) : Doctrine\DBAL\Migrations\OutputWriter

메소드 상세

askConfirmation() 보호된 메소드

This method ensure that we stay compatible with symfony console 2.3 by using the deprecated dialog helper but use the ConfirmationQuestion when available.
protected askConfirmation ( $question, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$question
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 mixed

configure() 보호된 메소드

protected configure ( )

getMigrationConfiguration() 보호된 메소드

If no (config) option is passed the migrationConfiguration property is set to the value of the configuration one (if any). Else a new configuration is created and assigned to the migrationConfiguration property.
protected getMigrationConfiguration ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Configuration
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 Doctrine\DBAL\Migrations\Configuration\Configuration

outputHeader() 보호된 메소드

protected outputHeader ( Configuration $configuration, Symfony\Component\Console\Output\OutputInterface $output )
$configuration Doctrine\DBAL\Migrations\Configuration\Configuration
$output Symfony\Component\Console\Output\OutputInterface

setMigrationConfiguration() 공개 메소드

public setMigrationConfiguration ( Configuration $config )
$config Doctrine\DBAL\Migrations\Configuration\Configuration